packages feed

fay 0.21.1 → 0.21.2

raw patch · 3 files changed

+8/−4 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -2,6 +2,10 @@  See full history at: <https://github.com/faylang/fay/commits> +### 0.21.2 (2014-10-21)++* Previously all package imports were ignored, now we only ignore `"base"` package imports.+ ### 0.21.1 (2014-10-21)  * Lots of additions to in `fay-base` adding the following modules:
fay.cabal view
@@ -1,5 +1,5 @@ name:                fay-version:             0.21.1+version:             0.21.2 synopsis:            A compiler for Fay, a Haskell subset that compiles to JavaScript. description:         Fay is a proper subset of Haskell which is type-checked                      with GHC, and compiled to JavaScript. It is lazy, pure, has a Fay monad,
src/Fay/Compiler/Import.hs view
@@ -98,9 +98,9 @@   -> F.ImportDecl   -> Compile a compileImport compileModule i = case i of-  -- Package imports are ignored since they are used for some trickery in fay-base.-  ImportDecl _ _    _ _ _ Just{}  _ _ -> return mempty-  ImportDecl _ name _ _ _ Nothing _ _ -> compileModuleFromName compileModule name+  -- Trickery in fay-base needs this special case+  ImportDecl _ _    _ _ _ (Just "base") _ _ -> return mempty+  ImportDecl _ name _ _ _ _ _ _ -> compileModuleFromName compileModule name  -- | Find an import's filepath and contents from its module name. findImport :: [FilePath] -> ModuleName a -> Compile (FilePath,String)