❯ stack install hfmt
<...snip dep installs...>
hfmt-0.1.0: configure
hfmt-0.1.0: build
-- While building package hfmt-0.1.0 using:
/home/rjs/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/rjs/bin/stickybeak/.stack-work/logs/hfmt-0.1.0.log
Configuring hfmt-0.1.0...
Building hfmt-0.1.0...
Preprocessing library hfmt-0.1.0...
[1 of 9] Compiling Path.Find ( src/Path/Find.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Path/Find.o )
/tmp/stack8815/hfmt-0.1.0/src/Path/Find.hs:9:1: warning: [-Wunused-imports]
The import of ‘Control.Exception’ is redundant
except perhaps to import instances from ‘Control.Exception’
To import instances alone, use: import Control.Exception()
/tmp/stack8815/hfmt-0.1.0/src/Path/Find.hs:10:1: warning: [-Wunused-imports]
The import of ‘Control.Monad’ is redundant
except perhaps to import instances from ‘Control.Monad’
To import instances alone, use: import Control.Monad()
/tmp/stack8815/hfmt-0.1.0/src/Path/Find.hs:16:1: warning: [-Wunused-imports]
The import of ‘System.IO.Error’ is redundant
except perhaps to import instances from ‘System.IO.Error’
To import instances alone, use: import System.IO.Error()
/tmp/stack8815/hfmt-0.1.0/src/Path/Find.hs:34:1: warning: [-Wunused-top-binds]
Defined but not used: ‘findDirUp’
[2 of 9] Compiling Language.Haskell.Source.Enumerator ( src/Language/Haskell/Source/Enumerator.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Language/Haskell/Source/Enumerator.o )
/tmp/stack8815/hfmt-0.1.0/src/Language/Haskell/Source/Enumerator.hs:6:1: warning: [-Wunused-imports]
The import of ‘Control.Applicative’ is redundant
except perhaps to import instances from ‘Control.Applicative’
To import instances alone, use: import Control.Applicative()
[3 of 9] Compiling Language.Haskell.Format.Definitions ( src/Language/Haskell/Format/Definitions.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Language/Haskell/Format/Definitions.o )
/tmp/stack8815/hfmt-0.1.0/src/Language/Haskell/Format/Definitions.hs:8:1: warning: [-Wunused-imports]
The import of ‘Control.Applicative’ is redundant
except perhaps to import instances from ‘Control.Applicative’
To import instances alone, use: import Control.Applicative()
[4 of 9] Compiling Language.Haskell.Format.Internal ( src/Language/Haskell/Format/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Language/Haskell/Format/Internal.o )
/tmp/stack8815/hfmt-0.1.0/src/Language/Haskell/Format/Internal.hs:8:1: warning: [-Wunused-imports]
The import of ‘Control.Applicative’ is redundant
except perhaps to import instances from ‘Control.Applicative’
To import instances alone, use: import Control.Applicative()
[5 of 9] Compiling Language.Haskell.Format.HIndent ( src/Language/Haskell/Format/HIndent.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Language/Haskell/Format/HIndent.o )
/tmp/stack8815/hfmt-0.1.0/src/Language/Haskell/Format/HIndent.hs:61:23: error:
• Couldn't match expected type ‘Data.ByteString.Internal.ByteString
-> Either String Data.ByteString.Builder.Builder’
with actual type ‘Either String Data.ByteString.Builder.Builder’
• The function ‘reformat’ is applied to four arguments,
but its type ‘Config
-> Maybe [Extension]
-> Data.ByteString.Internal.ByteString
-> Either String Data.ByteString.Builder.Builder’
has only three
In the second argument of ‘(<$>)’, namely
‘reformat config extensions Nothing sourceText’
In the expression:
toHaskellSource <$> reformat config extensions Nothing sourceText
/tmp/stack8815/hfmt-0.1.0/src/Language/Haskell/Format/HIndent.hs:61:50: error:
• Couldn't match expected type ‘Data.ByteString.Internal.ByteString’
with actual type ‘Maybe a0’
• In the third argument of ‘reformat’, namely ‘Nothing’
In the second argument of ‘(<$>)’, namely
‘reformat config extensions Nothing sourceText’
In the expression:
toHaskellSource <$> reformat config extensions Nothing sourceText