hpack-dhall 0.2.0 → 0.3.0
raw patch · 3 files changed
+10/−8 lines, 3 files
Files
- hpack-dhall.cabal +5/−4
- src/Hpack/Dhall.hs +2/−2
- test/Hpack/DhallSpec.hs +3/−2
hpack-dhall.cabal view
@@ -1,11 +1,13 @@--- This file has been generated from package.yaml by hpack version 0.28.2.+cabal-version: >= 1.10++-- This file has been generated from package.dhall by hpack version 0.29.5. -- -- see: https://github.com/sol/hpack ----- hash: 38e9ec5002ffc1e15956dcc564f84f57658610a5204fec5ff56d76d098689a1f+-- hash: 5aa240e82d90764729d6746cb05e32e98ad0acd863464d3e0521a9d58c9185f0 name: hpack-dhall-version: 0.2.0+version: 0.3.0 synopsis: Dhall support for Hpack description: This package allows you to use the Dhall configuration language to specify Haskell packages. category: Development@@ -14,7 +16,6 @@ maintainer: Simon Hengel <sol@typeful.net> license: PublicDomain build-type: Simple-cabal-version: >= 1.10 source-repository head type: git
src/Hpack/Dhall.hs view
@@ -6,7 +6,7 @@ import Control.Monad.IO.Class import Data.Bifunctor import Data.Aeson-import qualified Data.Text.Lazy.IO as LT+import qualified Data.Text.IO as T import System.Environment import qualified Dhall.Parser import qualified Dhall.Import@@ -24,7 +24,7 @@ _ <- liftResult $ Dhall.TypeCheck.typeOf expr liftResult $ Dhall.JSON.dhallToJSON expr where- readInput = liftIO (LT.readFile file)+ readInput = liftIO (T.readFile file) parseExpr = liftResult . Dhall.Parser.exprFromText file liftResult = ExceptT . return . first show
test/Hpack/DhallSpec.hs view
@@ -23,14 +23,15 @@ |] main readFile "foo.cabal" `shouldReturn` unindent [i|+ cabal-version: >= 1.10+ -- This file has been generated from package.dhall by hpack version #{showVersion Hpack.version}. -- -- see: https://github.com/sol/hpack --- -- hash: 19abf59677a84e0a8a49435b80f42f6007f6cdacd2b09c43514ab2b46d6c5927+ -- hash: 98987c02e53bcdf76e4c3d2912c868d16f30f3115762548e41d337f436ffc1cc name: foo version: 0.0.0 build-type: Simple- cabal-version: >= 1.10 |]