Skip to content
Snippets Groups Projects
Commit 956e9991 authored by Daniel Firth's avatar Daniel Firth
Browse files

add loadHorizon function

parent b75ffcd7
No related merge requests found
...@@ -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"
......
...@@ -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
''; '';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment