yesod-purescript 0.0.4.7 → 0.0.5
raw patch · 2 files changed
+7/−4 lines, 2 filesdep +mtldep ~purescript
Dependencies added: mtl
Dependency ranges changed: purescript
Files
- Yesod/PureScript.hs +4/−2
- yesod-purescript.cabal +3/−2
Yesod/PureScript.hs view
@@ -31,6 +31,7 @@ import Control.Exception (catch, SomeException) import Control.Monad (forever, forM, forM_) import Control.Monad.IO.Class (liftIO)+import Control.Monad.Reader (runReaderT) import Data.Either (rights) import Data.Maybe (catMaybes, mapMaybe) import Data.Text (Text)@@ -227,7 +228,7 @@ <tbody> $forall fnmods <- fnsmodules $with (fn, (time, modules)) <- fnmods- $forall (Module name _ _) <- modules+ $forall (Module name _ _ _) <- modules <tr> <td>#{show name} <td>#{filePathToText fn}@@ -447,7 +448,8 @@ Left _err -> Left (T.pack _err) Right (_js, _, _) -> Right (T.pack _js) where- _result = P.compile _psOptions modules ["yesod-purescript"]+ -- _result = P.compile _psOptions modules ["yesod-purescript"]+ _result = P.compile modules ["yesod-purescript"] `runReaderT` _psOptions _psOptions = P.defaultCompileOptions { P.optionsMain = Just (T.unpack mainModuleName) , P.optionsNoPrelude = False , P.optionsAdditional = _compileOptions
yesod-purescript.cabal view
@@ -1,5 +1,5 @@ name: yesod-purescript-version: 0.0.4.7+version: 0.0.5 synopsis: PureScript integration for Yesod description: PureScript is an awesome statically typed language that compiles to JS and runs in your browser, and this module makes it easier to use PureScript in Yesod. homepage: https://github.com/mpietrzak/yesod-purescript@@ -26,7 +26,8 @@ , data-default , formatting , fsnotify- , purescript >= 0.6.4 && < 0.6.8+ , mtl+ , purescript >= 0.6.9.3 && < 0.7 , regex-tdfa , regex-tdfa-text , shakespeare >= 2