forked from purescript/purescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBundle.hs
More file actions
30 lines (25 loc) · 868 Bytes
/
Bundle.hs
File metadata and controls
30 lines (25 loc) · 868 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
25
26
27
28
29
30
-- | Bundles compiled PureScript modules for the browser.
module Command.Bundle (command, initSqlite) where
import Prelude
import System.Exit (exitFailure)
import System.IO (stderr, hPutStrLn)
import Options.Applicative qualified as Opts
import Language.PureScript.Make.IdeCache (sqliteInit)
app :: IO ()
app = do
hPutStrLn stderr $ unlines
[ "'purs bundle' was removed in the v0.15.0 release."
, "See https://github.com/purescript/documentation/blob/master/migration-guides/0.15-Migration-Guide.md"
, "for more information and bundler alternatives."
]
exitFailure
-- | Make it go.
command :: Opts.Parser (IO ())
command = run <$> (Opts.helper <*> pure ()) where
run :: () -> IO ()
run _ = app
initSqlite :: Opts.Parser (IO ())
initSqlite = run <$> (Opts.helper <*> pure ()) where
run :: () -> IO ()
run _ = do
sqliteInit "output"