Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
horizon-platform
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
package-sets
horizon-platform
Commits
956e9991
Commit
956e9991
authored
2 years ago
by
Daniel Firth
Browse files
Options
Downloads
Patches
Plain Diff
add loadHorizon function
parent
b75ffcd7
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
shell/ShellRC.hs
+3
-0
3 additions, 0 deletions
shell/ShellRC.hs
shell/default.nix
+2
-0
2 additions, 0 deletions
shell/default.nix
with
5 additions
and
0 deletions
shell/ShellRC.hs
+
3
−
0
View file @
956e9991
...
@@ -277,6 +277,9 @@ h :: HorizonExport -> Expr Src Import
...
@@ -277,6 +277,9 @@ h :: HorizonExport -> Expr Src Import
h
(
MakePackageSet
(
MkPackageSetExportSettings
d
_
(
MkPackageSet
_
(
MkPackageList
(
Map
.
toList
->
ys
)))))
=
h
(
MakePackageSet
(
MkPackageSetExportSettings
d
_
(
MkPackageSet
_
(
MkPackageList
(
Map
.
toList
->
ys
)))))
=
RecordLit
$
DMap
.
fromList
$
map
((
\
(
MkName
x
,
y
)
->
(
x
,
y
))
.
uncurry
f
)
ys
RecordLit
$
DMap
.
fromList
$
map
((
\
(
MkName
x
,
y
)
->
(
x
,
y
))
.
uncurry
f
)
ys
loadHorizon
::
IO
HorizonExport
loadHorizon
=
Dhall
.
inputFile
@
HorizonExport
Dhall
.
auto
"horizon.dhall"
go
::
IO
()
go
::
IO
()
go
=
do
go
=
do
x
<-
Dhall
.
inputFile
@
HorizonExport
Dhall
.
auto
"horizon.dhall"
x
<-
Dhall
.
inputFile
@
HorizonExport
Dhall
.
auto
"horizon.dhall"
...
...
This diff is collapsed.
Click to expand it.
shell/default.nix
+
2
−
0
View file @
956e9991
...
@@ -54,6 +54,8 @@ let
...
@@ -54,6 +54,8 @@ let
:set prompt-function promptFunction
:set prompt-function promptFunction
_init
_init
hz <- loadHorizon
END
END
grep -E '^import .*$' <
${
shellrcSrc
}
/
${
shellrcModulePath
}
>> $out
grep -E '^import .*$' <
${
shellrcSrc
}
/
${
shellrcModulePath
}
>> $out
''
;
''
;
...
...
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