packages feed

haskellish 0.2.4 → 0.2.4.1

raw patch · 2 files changed

+6/−6 lines, 2 filesdep ~haskell-src-exts

Dependency ranges changed: haskell-src-exts

Files

Language/Haskellish.hs view
@@ -21,7 +21,7 @@  data Haskellish st a = Haskellish { _run :: st -> Exp SrcSpanInfo -> Either ParseError (a,st) } --- runHaskellish, introduced in this form in 0.2.4 and considered *deprecated* in favour of parseAndRun+-- runHaskellish, introduced in this form in 0.2.4 and considered *deprecated* in favour of parseExp -- is primarily meant to avoid breaking changes with projects built against 0.2.3 and earlier  runHaskellish :: Haskellish st a -> st -> Exp SrcSpanInfo -> Either String (a,st)@@ -31,12 +31,12 @@     Left (NonFatal ((a,b),_) t) -> Left $ show a ++ ":" ++ show b ++ " " ++ T.unpack t     Left (Fatal ((a,b),_) t) -> Left $ show a ++ ":" ++ show b ++ " " ++ T.unpack t --- parseAndRun replaces runHaskellish and is intended as the main top-level entry point for+-- parseExp replaces runHaskellish and is intended as the main top-level entry point for -- running a Haskellish parser. It uses haskell-src-exts to parse Text into a Haskell AST -- that is then parsed by the Haskellish parser. -parseAndRun :: Haskellish st a -> st -> Text -> Either (Span,Text) (a,st)-parseAndRun h st x = do+parseExp :: Haskellish st a -> st -> Text -> Either (Span,Text) (a,st)+parseExp h st x = do   case Exts.parseExp (T.unpack x) of     Exts.ParseOk e -> do       case _run h st e of
haskellish.cabal view
@@ -1,5 +1,5 @@ name:                haskellish-version:             0.2.4+version:             0.2.4.1 synopsis:            For parsing Haskell-ish languages homepage:            http://github.com/dktr0/Haskellish license:             BSD3@@ -28,7 +28,7 @@    Build-depends:       base >=4.8 && <5-    , haskell-src-exts >=1.17.1 && <1.23+    , haskell-src-exts >=1.17.1 && <1.24     , mtl >= 2.2.2 && <2.3     , template-haskell >= 2.10.0.0 && < 2.16     , containers < 0.7