Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
horizon-spec
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
dhall
horizon-spec
Commits
189e2771
Commit
189e2771
authored
2 years ago
by
Max Tomago
Browse files
Options
Downloads
Patches
Plain Diff
Tidy up
parent
e480dd49
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
horizon-spec.cabal
+0
-7
0 additions, 7 deletions
horizon-spec.cabal
src/Horizon/Spec.hs
+5
-42
5 additions, 42 deletions
src/Horizon/Spec.hs
with
5 additions
and
49 deletions
horizon-spec.cabal
+
0
−
7
View file @
189e2771
...
...
@@ -35,15 +35,8 @@ library
ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe
build-depends:
base >=4.7 && <5
, Cabal-syntax
, cabal2nix
, containers
, dhall
, directory
, language-nix
, lens
, path
, path-dhall-instance
, pretty
, text
default-language: Haskell2010
This diff is collapsed.
Click to expand it.
src/Horizon/Spec.hs
+
5
−
42
View file @
189e2771
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module
Horizon.Spec
where
import
Cabal2nix
(
Options
(
..
),
cabal2nix'
)
import
Control.Lens
((
#
))
import
Control.Monad
(
forM_
,
unless
,
(
>=>
))
import
Data.Kind
(
Type
)
import
Data.Map
(
Map
,
keys
,
toList
)
import
Data.Text
(
Text
)
import
qualified
Data.Text
as
T
import
Dhall
(
FromDhall
,
Generic
,
ToDhall
,
auto
,
input
)
import
Distribution.Compiler
(
buildCompilerId
)
import
Distribution.Nixpkgs.Fetch
(
FetchSubmodules
(
FetchSubmodules
))
import
Distribution.Nixpkgs.Haskell.Derivation
(
Derivation
)
import
Distribution.Nixpkgs.Haskell.PackageSourceSpec
(
HpackUse
(
NoHpack
))
import
Distribution.System
(
buildPlatform
)
import
Language.Nix.Binding
(
binding
)
import
Language.Nix.Identifier
(
ident
)
import
Language.Nix.Path
(
path
)
import
Path
(
Dir
,
File
,
Path
,
Rel
,
mkRelDir
,
mkRelFile
,
parseRelFile
,
toFilePath
,
(
</>
))
import
Path.Dhall
()
import
System.Directory
(
createDirectoryIfMissing
,
doesFileExist
)
import
System.IO
(
IOMode
(
WriteMode
),
hPutStrLn
,
withFile
)
import
Text.PrettyPrint.HughesPJClass
(
prettyShow
,
render
)
import
Data.Kind
(
Type
)
import
Data.Text
(
Text
)
import
Dhall
(
FromDhall
,
Generic
,
ToDhall
)
import
Path
(
Dir
,
Path
,
Rel
)
import
Path.Dhall
()
type
Url
::
Type
...
...
@@ -105,5 +70,3 @@ newtype Revision where
MkRevision
::
{
fromRevision
::
Text
}
->
Revision
deriving
stock
(
Show
,
Eq
,
Generic
)
deriving
newtype
(
FromDhall
,
ToDhall
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment