cabalism / hpack-dhall

Use hpack's phrasing in dhall to write cabal files
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

Couldn't match type *.Text with *.Lazy.Text. #5

Closed philderbeast closed 5 years ago

philderbeast commented 5 years ago

The travis hpack build is failing;

$ cabal configure --enable-tests --ghc-options=-Werror && cabal build && cabal test
...
[1 of 2] Compiling Hpack.Dhall      ( src/Hpack/Dhall.hs, dist/.../Dhall.o )
src/Hpack/Dhall.hs:23:25: error:
    • Couldn't match type ‘Data.Text.Internal.Text’
                     with ‘Data.Text.Internal.Lazy.Text’
      NB: ‘Data.Text.Internal.Lazy.Text’
            is defined in ‘Data.Text.Internal.Lazy’
          ‘Data.Text.Internal.Text’ is defined in ‘Data.Text.Internal’
      Expected type: Data.Text.Internal.Text
                     -> ExceptT
                          String IO (Dhall.Core.Expr Dhall.Parser.Src Dhall.Core.Path)
        Actual type: Data.Text.Internal.Lazy.Text
                     -> ExceptT
                          String IO (Dhall.Core.Expr Dhall.Parser.Src Dhall.Core.Path)
    • In the second argument of ‘(>>=)’, namely ‘parseExpr’
      In the first argument of ‘(>>=)’, namely ‘readInput >>= parseExpr’
      In a stmt of a 'do' block:
        expr <- readInput >>= parseExpr >>= liftIO . Dhall.Import.load
src/Hpack/Dhall.hs:28:56: error:
    • Couldn't match type ‘[Char]’
                     with ‘trifecta-1.7.1.1:Text.Trifecta.Delta.Delta’
      Expected type: trifecta-1.7.1.1:Text.Trifecta.Delta.Delta
        Actual type: FilePath
    • In the first argument of ‘Dhall.Parser.exprFromText’, namely
        ‘file’
      In the second argument of ‘(.)’, namely
        ‘Dhall.Parser.exprFromText file’
      In the expression: liftResult . Dhall.Parser.exprFromText file