haskellish 0.2.2 → 0.2.3
raw patch · 2 files changed
+13/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Language.Haskellish: functionApplication :: Haskellish st a -> Haskellish st b -> Haskellish st (a, b)
Files
- Language/Haskellish.hs +12/−0
- haskellish.cabal +1/−1
Language/Haskellish.hs view
@@ -240,3 +240,15 @@ (b,st''') <- runHaskellish bP st'' bE return ((f,a,b),st''') )++-- | functionApplication parses most cases where one thing is applied to another. Like binaryApplication, it is+-- is intended for rare cases where one wants to match the pattern of one thing being applied to another, without+-- that application "actually" taking place - the parsed sub-expressions are returned instead.++functionApplication :: Haskellish st a -> Haskellish st b -> Haskellish st (a,b)+functionApplication fP xP = Haskellish (\st e -> do+ (fE,xE) <- applicationExpressions e+ (f,st') <- runHaskellish fP st fE+ (x,st'') <- runHaskellish xP st' xE+ return ((f,x),st'')+ )
haskellish.cabal view
@@ -1,5 +1,5 @@ name: haskellish-version: 0.2.2+version: 0.2.3 synopsis: For parsing Haskell-ish languages homepage: http://github.com/dktr0/Haskellish license: BSD3