Skip to content

Commit

Permalink
Update for ghc-simple 0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
valderman committed Nov 25, 2015
1 parent fd2c605 commit bde714c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion haste-compiler.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Executable hastec
either,
filepath,
directory,
ghc-simple >= 0.2 && < 0.3
ghc-simple >= 0.3 && < 0.4
Main-Is:
hastec.hs
Other-Modules:
Expand Down
4 changes: 2 additions & 2 deletions src/hastec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ main = do
copyFile libfile (profLibfile)

finalize (targets, mods) m = do
let meta = modMetaData m
let meta = modMetadata m
infile = maybe (mmInterfaceFile meta) id (mmSourceFile meta)
modpair = (mmPackageKey meta, infile)
if mmIsTarget meta
if modIsTarget m
then return (modpair : targets, mmName meta : mods)
else return (targets, mmName meta : mods)

Expand Down

0 comments on commit bde714c

Please sign in to comment.