-
Notifications
You must be signed in to change notification settings - Fork 1
/
Setup.hs
22 lines (19 loc) · 837 Bytes
/
Setup.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Distribution.Simple (UserHooks (preBuild), defaultMainWithHooks, simpleUserHooks, Args)
import Distribution.Simple.Setup (BuildFlags)
import Distribution.PackageDescription (HookedBuildInfo, emptyHookedBuildInfo)
main = defaultMainWithHooks hooks
hooks :: UserHooks
--hooks = simpleUserHooks
hooks = simpleUserHooks {
preBuild = agdaGenerateHaskell
}
-- TODO: Write some code in here to compile agda code with
-- stack oppossed to do it manually
-- ALSO: THIS FILE IS NEVER USED BY STACK :S
agdaGenerateHaskell :: Args -> BuildFlags -> IO HookedBuildInfo
agdaGenerateHaskell args buildargs = do
putStrLn "Hey!!!!"
return emptyHookedBuildInfo
-- Some useful urls:
-- https://www.haskell.org/cabal/users-guide/developing-packages.html
-- https://hackage.haskell.org/package/Cabal-1.24.0.0/docs/Distribution-Simple.html