summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/auto.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-02-20 13:14:04 +0000
committerAlberto Ruiz <aruiz@um.es>2010-02-20 13:14:04 +0000
commitbbf07a5b76cf196007adcfe2bfc954440843ce2f (patch)
tree5c3162567bfdd6761b2217641f49dd9ef5480aae /lib/Numeric/GSL/Special/auto.hs
parent7f94a70d57d44c1b0d63226684c008edde2678c9 (diff)
safe-cheap flag
Diffstat (limited to 'lib/Numeric/GSL/Special/auto.hs')
-rw-r--r--lib/Numeric/GSL/Special/auto.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Numeric/GSL/Special/auto.hs b/lib/Numeric/GSL/Special/auto.hs
index 011272c..b46e6c6 100644
--- a/lib/Numeric/GSL/Special/auto.hs
+++ b/lib/Numeric/GSL/Special/auto.hs
@@ -183,7 +183,7 @@ showCt (Pointer s) = s ++ "*"
183 183
184showCa (t, a) = showCt t ++" "++ a 184showCa (t, a) = showCt t ++" "++ a
185 185
186showH hc h@(Header t n args) = "foreign import ccall \""++n++"\" "++n++" :: "++ (concat$intersperse" -> "$map showHa args) ++" -> " ++ t' 186showH hc h@(Header t n args) = "foreign import ccall SAFE_CHEAP \""++n++"\" "++n++" :: "++ (concat$intersperse" -> "$map showHa args) ++" -> " ++ t'
187 where t' | pure h = showHt t 187 where t' | pure h = showHt t
188 | otherwise = "IO "++showHt t 188 | otherwise = "IO "++showHt t
189 189