eternal 0.0.1 → 0.0.2
raw patch · 2 files changed
+9/−5 lines, 2 filesdep −fsharp
Dependencies removed: fsharp
Files
eternal.cabal view
@@ -1,6 +1,6 @@ name: eternal category: Control -version: 0.0.1 +version: 0.0.2 author: Heather Cynede maintainer: Heather Cynede <Cynede@Gentoo.org> license: BSD3 @@ -11,7 +11,7 @@ but in the same time usable in other projects build-type: Simple -cabal-version: >= 1.6 +cabal-version: >= 1.8 library Hs-Source-Dirs: src @@ -34,7 +34,6 @@ Build-Depends: base >= 4.3 && < 5 - , fsharp , directory , filepath , regex-compat
src/Control/Eternal/Syntax/Operators.hs view
@@ -3,5 +3,10 @@ , (|>) ) where -import Control.FSharp.Syntax.Operators - {- probably maybe they will be even here... -} +infixl 2 <|, |> + +(<|) :: (a -> b) -> a -> b +f <| a = f a + +(|>) :: a -> (a -> b) -> b +a |> f = f a