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
h (MakePackageSet (MkPackageSetExportSettings d _ (MkPackageSet _ (MkPackageList (Map.toList -> 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 = do
x <- Dhall.inputFile @HorizonExport Dhall.auto "horizon.dhall"
......
......@@ -54,6 +54,8 @@ let
:set prompt-function promptFunction
_init
hz <- loadHorizon
END
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