haskell-src-exts support

This commit is contained in:
Niklas Broberg 2005-04-27 09:19:44 +00:00
parent 389c1ce711
commit deacb85627
2 changed files with 4 additions and 6 deletions

View File

@ -28,9 +28,7 @@ import Data.List
import Data.Char import Data.Char
import Data.Either import Data.Either
import Language.Haskell.Parser import Language.Haskell.Hsx
import Language.Haskell.Syntax
import Language.Haskell.Pretty
-- --
-- | parse a file (as a string) as Haskell src -- | parse a file (as a string) as Haskell src
@ -40,7 +38,7 @@ parse :: FilePath -- ^ module name
-> Either String HsModule -- ^ abstract syntax -> Either String HsModule -- ^ abstract syntax
parse f fsrc = parse f fsrc =
case parseModuleWithMode (ParseMode f) fsrc of case parseFileContentsWithMode (ParseMode f) fsrc of
ParseOk src -> Right src ParseOk src -> Right src
ParseFailed loc _ -> Left $ srcmsg loc ParseFailed loc _ -> Left $ srcmsg loc
where where

View File

@ -14,7 +14,7 @@ Package {
include_dirs = [], include_dirs = [],
source_dirs = [], source_dirs = [],
extra_libraries = [], extra_libraries = [],
package_deps = [ "altdata", "hi", "unix", "haskell-src", "posix" ], package_deps = [ "altdata", "hi", "unix", "haskell-src-exts", "posix" ],
extra_ghc_opts = [], extra_ghc_opts = [],
extra_cc_opts = [], extra_cc_opts = [],
extra_ld_opts = [] extra_ld_opts = []
@ -51,7 +51,7 @@ hs-libraries: HSplugins
extra-libraries: extra-libraries:
include-dirs: include-dirs:
includes: Linker.h includes: Linker.h
depends: altdata, hi, haskell-src, Cabal depends: altdata, hi, haskell-src-exts, Cabal
hugs-options: hugs-options:
cc-options: cc-options:
ld-options: ld-options: