summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-09-23 18:54:55 +0000
committerAlberto Ruiz <aruiz@um.es>2010-09-23 18:54:55 +0000
commit5747804b85c0f8e0472bc92cc2f8197b2d6e7b59 (patch)
treea9dad0bdfb64c2c8f8f7ec03b0c82991615375be /lib
parentf50304b47f99ce0280d7ab7daf28ffe6b0d0b853 (diff)
app signatures
Diffstat (limited to 'lib')
-rw-r--r--lib/Data/Packed/Development.hs1
-rw-r--r--lib/Data/Packed/Internal/Common.hs56
2 files changed, 21 insertions, 36 deletions
diff --git a/lib/Data/Packed/Development.hs b/lib/Data/Packed/Development.hs
index 3eb7552..6098e03 100644
--- a/lib/Data/Packed/Development.hs
+++ b/lib/Data/Packed/Development.hs
@@ -17,7 +17,6 @@
17 17
18module Data.Packed.Development ( 18module Data.Packed.Development (
19 createVector, createMatrix, 19 createVector, createMatrix,
20 Adapt,
21 vec, mat, 20 vec, mat,
22 app1, app2, app3, app4, 21 app1, app2, app3, app4,
23 app5, app6, app7, app8, app9, app10, 22 app5, app6, app7, app8, app9, app10,
diff --git a/lib/Data/Packed/Internal/Common.hs b/lib/Data/Packed/Internal/Common.hs
index c348575..a8c3c3e 100644
--- a/lib/Data/Packed/Internal/Common.hs
+++ b/lib/Data/Packed/Internal/Common.hs
@@ -82,41 +82,27 @@ ww10 w1 o1 w2 o2 w3 o3 w4 o4 w5 o5 w6 o6 w7 o7 w8 o8 w9 o9 w10 o10 f = w1 o1 $ w
82 82
83type Adapt f t r = t -> ((f -> r) -> IO()) -> IO() 83type Adapt f t r = t -> ((f -> r) -> IO()) -> IO()
84 84
85app1 :: f 85type Adapt1 f t1 = Adapt f t1 (IO CInt) -> t1 -> String -> IO()
86 -> Adapt f t (IO CInt) 86type Adapt2 f t1 r1 t2 = Adapt f t1 r1 -> t1 -> Adapt1 r1 t2
87 -> t 87type Adapt3 f t1 r1 t2 r2 t3 = Adapt f t1 r1 -> t1 -> Adapt2 r1 t2 r2 t3
88 -> String 88type Adapt4 f t1 r1 t2 r2 t3 r3 t4 = Adapt f t1 r1 -> t1 -> Adapt3 r1 t2 r2 t3 r3 t4
89 -> IO() 89type Adapt5 f t1 r1 t2 r2 t3 r3 t4 r4 t5 = Adapt f t1 r1 -> t1 -> Adapt4 r1 t2 r2 t3 r3 t4 r4 t5
90 90type Adapt6 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 = Adapt f t1 r1 -> t1 -> Adapt5 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6
91app2 :: f 91type Adapt7 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 = Adapt f t1 r1 -> t1 -> Adapt6 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7
92 -> Adapt f t1 r 92type Adapt8 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 = Adapt f t1 r1 -> t1 -> Adapt7 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8
93 -> t1 93type Adapt9 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 r8 t9 = Adapt f t1 r1 -> t1 -> Adapt8 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 r8 t9
94 -> Adapt r t2 (IO CInt) 94type Adapt10 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 r8 t9 r9 t10 = Adapt f t1 r1 -> t1 -> Adapt9 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 r8 t9 r9 t10
95 -> t2 95
96 -> String 96app1 :: f -> Adapt1 f t1
97 -> IO() 97app2 :: f -> Adapt2 f t1 r1 t2
98 98app3 :: f -> Adapt3 f t1 r1 t2 r2 t3
99app3 :: f 99app4 :: f -> Adapt4 f t1 r1 t2 r2 t3 r3 t4
100 -> Adapt f t1 r1 100app5 :: f -> Adapt5 f t1 r1 t2 r2 t3 r3 t4 r4 t5
101 -> t1 101app6 :: f -> Adapt6 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6
102 -> Adapt r1 t2 r2 102app7 :: f -> Adapt7 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7
103 -> t2 103app8 :: f -> Adapt8 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8
104 -> Adapt r2 t3 (IO CInt) 104app9 :: f -> Adapt9 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 r8 t9
105 -> t3 105app10 :: f -> Adapt10 f t1 r1 t2 r2 t3 r3 t4 r4 t5 r5 t6 r6 t7 r7 t8 r8 t9 r9 t10
106 -> String
107 -> IO()
108
109app4 :: f
110 -> Adapt f t1 r1
111 -> t1
112 -> Adapt r1 t2 r2
113 -> t2
114 -> Adapt r2 t3 r3
115 -> t3
116 -> Adapt r3 t4 (IO CInt)
117 -> t4
118 -> String
119 -> IO()
120 106
121app1 f w1 o1 s = w1 o1 $ \a1 -> f // a1 // check s 107app1 f w1 o1 s = w1 o1 $ \a1 -> f // a1 // check s
122app2 f w1 o1 w2 o2 s = ww2 w1 o1 w2 o2 $ \a1 a2 -> f // a1 // a2 // check s 108app2 f w1 o1 w2 o2 s = ww2 w1 o1 w2 o2 $ \a1 a2 -> f // a1 // a2 // check s