forked from ghcjs/jsaddle-dom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.hs
More file actions
24 lines (23 loc) · 747 Bytes
/
Setup.hs
File metadata and controls
24 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import Control.Monad (void)
import Control.Concurrent (threadDelay, forkIO)
import Data.Foldable (forM_)
import Distribution.Simple
(simpleUserHooks, buildHook, defaultMain)
import System.IO (stdout, hFlush)
-- We should split JSDOM.Types into smaller packages.
-- For now let the user (or CI system) know that it
-- is not unusual for there to be no output for a
-- long time.
main = defaultMain
{-
main = defaultMainWithHooks simpleUserHooks {
buildHook = \a b c d -> do
void . forkIO $
forM_ [1..20] $ \n -> do
threadDelay 60000000
putStrLn $ "jsaddle-dom has been building for "
<> show n <> " min (some modules are very large)."
hFlush stdout
buildHook simpleUserHooks a b c d
}
-}