cosmetic change.
This commit is contained in:
parent
b11475821e
commit
86d5419309
3
Types.hs
3
Types.hs
@ -11,6 +11,7 @@ import GHC.Paths (libdir)
|
||||
----------------------------------------------------------------
|
||||
|
||||
data OutputStyle = LispStyle | PlainStyle
|
||||
|
||||
data Options = Options {
|
||||
outputStyle :: OutputStyle
|
||||
, hlintOpts :: [String]
|
||||
@ -25,6 +26,8 @@ convert Options{outputStyle = LispStyle} ms = "(" ++ unwords quoted ++ ")\n"
|
||||
quoted = map quote ms
|
||||
convert Options{ outputStyle = PlainStyle } ms = unlines ms
|
||||
|
||||
----------------------------------------------------------------
|
||||
|
||||
withGHC :: (MonadPlus m) => Ghc (m a) -> IO (m a)
|
||||
withGHC body = ghandle ignore $ runGhc (Just libdir) body
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user