},
"scripts": {
"build": "npm run-script build:compile && npm run-script build:docs && npm run-script build:package",
- "build:compile": "./node_modules/.bin/pulp build -o build",
- "build:docs": "./node_modules/.bin/pulp docs",
- "build:package": "./node_modules/.bin/webpack --progress --colors --profile --bail",
- "build:watch": "./node_modules/.bin/pulp -w build -o build",
- "build:json": "./node_modules/.bin/webpack --progress --colors --profile --bail --json > index.json",
+ "build:compile": "pulp build -o build",
+ "build:docs": "pulp docs",
+ "build:package": "webpack --progress --colors --profile --bail",
+ "build:watch": "pulp -w build -o build",
+ "build:json": "webpack --progress --colors --profile --bail --json > index.json",
"prepublish": "npm run-script build"
},
"files": [
import Data.Maybe (Maybe(..), fromMaybe, maybe)
import Data.Either (Either(..))
import Data.String (joinWith)
-import Data.String.Regex (match, noFlags, regex, test)
+import Data.String.Regex (Regex(), match, noFlags, regex, test)
import Data.Traversable (sequence)
import Data.Foreign (F())
import Data.Foreign.Class (read)
type Effects eff = (cp :: ChildProcess, fs :: FS, glob :: Glob, loader :: Loader, err :: EXCEPTION | eff)
+moduleRegex :: Regex
moduleRegex = regex "(?:^|\\n)module\\s+([\\w\\.]+)" noFlags { ignoreCase = true }
+foreignRegex :: Regex
foreignRegex = regex "(?:^|\\n)\\s*foreign import\\s+" noFlags { ignoreCase = true }
+pscCommand :: String
pscCommand = "psc"
+psciCommand :: String
psciCommand = "psci"
+psciFilename :: String
psciFilename = ".psci"
+(!!!) :: forall a. Int -> Array a -> Maybe a
(!!!) = flip (!!)
foreign import cwd :: String
import Data.Foreign (Foreign())
-import PursLoader.LoaderRef (LoaderRef())
-
foreign import parseQuery :: String -> Foreign
, output
) where
-import Prelude (Unit(), (<>), (<$>), (<<<), (++), (<*>), ($), const, id)
+import Prelude ((<>), (<$>), (<<<), (++), (<*>), ($), const, id)
import Data.Array (concat)
import Data.Either (either)
-import Data.Foreign (Foreign(), F())
+import Data.Foreign (Foreign())
import Data.Foreign.Class (IsForeign, read, readProp)
import Data.Foreign.NullOrUndefined (NullOrUndefined(..), runNullOrUndefined)
import Data.Maybe (Maybe(..), maybe, fromMaybe)
+noPreludeOpt :: String
noPreludeOpt = "no-prelude"
+noOptsOpt :: String
noOptsOpt = "no-opts"
+noMagicDoOpt :: String
noMagicDoOpt = "no-magic-do"
+noTcoOpt :: String
noTcoOpt = "no-tco"
+verboseErrorsOpt :: String
verboseErrorsOpt = "verbose-errors"
+outputOpt :: String
outputOpt = "output"
+commentsOpt :: String
commentsOpt = "comments"
+noPrefixOpt :: String
noPrefixOpt = "no-prefix"
+requirePathOpt :: String
requirePathOpt = "require-path"
+srcOpt :: String
srcOpt = "src"
+ffiOpt :: String
ffiOpt = "ffi"
newtype Options