diff options
author | Alberto Ruiz <aruiz@um.es> | 2015-06-06 13:10:09 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2015-06-06 13:10:09 +0200 |
commit | de69c1cd115cf2702f4ef6c6932d25ae52375e83 (patch) | |
tree | 03b0b87816a380bf5628ad791b2f034529eaf4e4 /packages/base/src/Internal/Devel.hs | |
parent | 3e4cdbadb0277010b0e089615e3053f6705332cb (diff) |
remove Tools
Diffstat (limited to 'packages/base/src/Internal/Devel.hs')
-rw-r--r-- | packages/base/src/Internal/Devel.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/base/src/Internal/Devel.hs b/packages/base/src/Internal/Devel.hs index 61d2c85..b8e04ef 100644 --- a/packages/base/src/Internal/Devel.hs +++ b/packages/base/src/Internal/Devel.hs | |||
@@ -11,7 +11,6 @@ | |||
11 | module Internal.Devel where | 11 | module Internal.Devel where |
12 | 12 | ||
13 | 13 | ||
14 | import Internal.Tools ( (//) ) | ||
15 | import Control.Monad ( when ) | 14 | import Control.Monad ( when ) |
16 | import Foreign.C.Types ( CInt ) | 15 | import Foreign.C.Types ( CInt ) |
17 | --import Foreign.Storable.Complex () | 16 | --import Foreign.Storable.Complex () |
@@ -19,6 +18,11 @@ import Foreign.Ptr(Ptr) | |||
19 | import Control.Exception as E ( SomeException, catch ) | 18 | import Control.Exception as E ( SomeException, catch ) |
20 | 19 | ||
21 | 20 | ||
21 | -- | postfix function application (@flip ($)@) | ||
22 | (//) :: x -> (x -> y) -> y | ||
23 | infixl 0 // | ||
24 | (//) = flip ($) | ||
25 | |||
22 | -- hmm.. | 26 | -- hmm.. |
23 | ww2 w1 o1 w2 o2 f = w1 o1 $ w2 o2 . f | 27 | ww2 w1 o1 w2 o2 f = w1 o1 $ w2 o2 . f |
24 | ww3 w1 o1 w2 o2 w3 o3 f = w1 o1 $ ww2 w2 o2 w3 o3 . f | 28 | ww3 w1 o1 w2 o2 w3 o3 f = w1 o1 $ ww2 w2 o2 w3 o3 . f |