Resolving dependencies... Configuring transformers-compat-0.5.1.4... Configuring ansi-terminal-0.6.2.3... Building transformers-compat-0.5.1.4... Building ansi-terminal-0.6.2.3... Configuring text-1.2.2.1... Installed transformers-compat-0.5.1.4 Building text-1.2.2.1... Installed ansi-terminal-0.6.2.3 Configuring ansi-wl-pprint-0.6.7.3... Building ansi-wl-pprint-0.6.7.3... Installed ansi-wl-pprint-0.6.7.3 Configuring optparse-applicative-0.13.0.0... Building optparse-applicative-0.13.0.0... Installed optparse-applicative-0.13.0.0 Installed text-1.2.2.1 Configuring hills-0.1.0.0... Building hills-0.1.0.0... Failed to install hills-0.1.0.0 Build log ( /home/builder/.cabal/logs/hills-0.1.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-15093/hills-0.1.0.0' Configuring hills-0.1.0.0... Building hills-0.1.0.0... Preprocessing executable 'hills' for hills-0.1.0.0... [1 of 8] Compiling Stl ( Stl.hs, dist/build/hills/hills-tmp/Stl.o ) [2 of 8] Compiling LatLong ( LatLong.hs, dist/build/hills/hills-tmp/LatLong.o ) [3 of 8] Compiling Area ( Area.hs, dist/build/hills/hills-tmp/Area.o ) [4 of 8] Compiling CGIAR ( CGIAR.hs, dist/build/hills/hills-tmp/CGIAR.o ) [5 of 8] Compiling Topo ( Topo.hs, dist/build/hills/hills-tmp/Topo.o ) [6 of 8] Compiling Model ( Model.hs, dist/build/hills/hills-tmp/Model.o ) [7 of 8] Compiling Parse ( Parse.hs, dist/build/hills/hills-tmp/Parse.o ) Parse.hs:7: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() [8 of 8] Compiling Main ( Main.hs, dist/build/hills/hills-tmp/Main.o ) Main.hs:137:18: error: • Couldn't match expected type ‘ReadM FilePath’ with actual type ‘a0 -> Maybe a0’ • Probable cause: ‘Just’ is applied to too few arguments In the first argument of ‘argument’, namely ‘Just’ In the second argument of ‘(<*>)’, namely ‘argument Just (metavar "OUTFILE")’ In the expression: Opts <$> option (eitherReader parseLatLongOpt) (short 'p' <> long "position" <> metavar "LAT,LONG" <> help "position (by default the centre)") <*> option (eitherReader parseSizeOpt) (short 'd' <> long "dimensions" <> value (sizeFromSecs (300, 600)) <> metavar "ARCSECxARCSEC" <> help "size in arcseconds") <*> option (eitherReader parseOffsetOpt) (long "offset" <> value Nothing <> metavar "ARCSEC,ARCSEC" <> help "offset from centre in arcseconds") <*> option auto (short 'b' <> long "base-altitude" <> value ((- 100) :: Double) <> metavar "METRES" <> help "base altitude") <*> option auto (short 's' <> long "scale" <> value 100 <> metavar "FACTOR" <> help "factor to scale down by") <*> option (eitherReader (Right . Just)) (short 'i' <> long "input-dir" <> value Nothing <> metavar "DIR" <> help "directory with input files") <*> argument Just (metavar "OUTFILE") cabal: Leaving directory '/tmp/cabal-tmp-15093/hills-0.1.0.0' cabal: Error: some packages failed to install: hills-0.1.0.0 failed during the building phase. The exception was: ExitFailure 1