summaryrefslogtreecommitdiff
path: root/examples/experiments
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-11-23 13:25:42 +0000
committerAlberto Ruiz <aruiz@um.es>2007-11-23 13:25:42 +0000
commit30fdf02aff2ac1c4da2bb9292fc08cc8330580d0 (patch)
tree82b062214626c20922959c82581decb3df2ba5ec /examples/experiments
parent48139eb50c9052406839ee8375e378374e973207 (diff)
removed many -Wall warnings
Diffstat (limited to 'examples/experiments')
-rw-r--r--examples/experiments/Static.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/experiments/Static.hs b/examples/experiments/Static.hs
index c0cfcce..385bb7b 100644
--- a/examples/experiments/Static.hs
+++ b/examples/experiments/Static.hs
@@ -18,11 +18,11 @@ instance Lift (ForeignPtr Double) where
18 lift p = [e| p |] 18 lift p = [e| p |]
19 19
20instance (Lift a, Storable a, Lift (Ptr a), Lift (ForeignPtr a)) => Lift (Vector a ) where 20instance (Lift a, Storable a, Lift (Ptr a), Lift (ForeignPtr a)) => Lift (Vector a ) where
21 lift (V n fp p) = [e| V $(lift n) $(lift fp) $(lift p) |] 21 lift (V n fp) = [e| V $(lift n) $(lift fp) |]
22 22
23instance (Lift (Vector a)) => Lift (Matrix a) where 23instance (Lift (Vector a)) => Lift (Matrix a) where
24 lift (MC r c v vt) = [e| MC $(lift r) $(lift c) $(lift v) $(lift vt) |] 24 lift (MC r c v) = [e| MC $(lift r) $(lift c) $(lift v) |]
25 lift (MF r c v vt) = [e| MF $(lift r) $(lift c) $(lift v) $(lift vt) |] 25 lift (MF r c v) = [e| MF $(lift r) $(lift c) $(lift v) |]
26 26
27tdim :: Int -> ExpQ 27tdim :: Int -> ExpQ
28tdim 0 = [| Z |] 28tdim 0 = [| Z |]