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
78c6d4a8
Commit
78c6d4a8
authored
2 years ago
by
Daniel Firth
Browse files
Options
Downloads
Patches
Plain Diff
dhall/package.dhall: import from horizon-platform
parent
41957033
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
dhall/package.dhall
+41
-0
41 additions, 0 deletions
dhall/package.dhall
test/Spec.hs
+10
-0
10 additions, 0 deletions
test/Spec.hs
with
51 additions
and
0 deletions
dhall/package.dhall
0 → 100644
+
41
−
0
View file @
78c6d4a8
let HsSrc =
< FromHackage : { name : Text, version : Text }
| FromGit :
{ url : Text, revision : Optional Text, subdir : Optional Text }
>
let Modifiers =
{ Type = { doJailbreak : Bool, doCheck : Bool }
, default = { doJailbreak = True, doCheck = False }
}
let Attr = λ(a : Type) → { mapKey : Text, mapValue : a }
let HsPkg =
{ Type = { source : HsSrc, modifiers : Modifiers.Type }
, default.modifiers = Modifiers.default
}
let callHackage
: ∀(name : Text) → ∀(version : Text) → Attr HsPkg.Type
= λ(name : Text) →
λ(version : Text) →
{ mapKey = name
, mapValue = HsPkg::{ source = HsSrc.FromHackage { name, version } }
}
let callCabal2nix
: ∀(name : Text) →
∀(url : Text) →
∀(revision : Optional Text) →
∀(subdir : Optional Text) →
Attr HsPkg.Type
= λ(name : Text) →
λ(url : Text) →
λ(revision : Optional Text) →
λ(subdir : Optional Text) →
{ mapKey = name
, mapValue = HsPkg::{ source = HsSrc.FromGit { url, revision, subdir } }
}
in { HsSrc, Modifiers, Attr, HsPkg, callHackage, callCabal2nix }
This diff is collapsed.
Click to expand it.
test/Spec.hs
0 → 100644
+
10
−
0
View file @
78c6d4a8
module
Main
(
main
)
where
import
Test.Tasty
(
TestTree
,
defaultMain
,
testGroup
)
import
Test.Tasty.Golden
(
goldenVsFile
)
main
::
IO
()
main
=
defaultMain
tests
tests
::
TestTree
tests
=
testGroup
"Tests"
[
test
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