diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/auto.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/auto.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/Special/auto.hs b/lib/Numeric/GSL/Special/auto.hs index 9785fe7..c8b0529 100644 --- a/lib/Numeric/GSL/Special/auto.hs +++ b/lib/Numeric/GSL/Special/auto.hs | |||
@@ -54,7 +54,7 @@ main = do | |||
54 | putStrLn headerfile | 54 | putStrLn headerfile |
55 | --mapM_ print (headers $ fixlong file) | 55 | --mapM_ print (headers $ fixlong file) |
56 | let parsed = (headers $ fixlong file) | 56 | let parsed = (headers $ fixlong file) |
57 | writeFile (name ++".h") (fixC $ unlines $ map showC parsed) | 57 | -- writeFile (name ++".h") (fixC $ unlines $ map showC parsed) |
58 | 58 | ||
59 | --putStrLn "" | 59 | --putStrLn "" |
60 | --mapM (\(Header _ n _) -> putStrLn (drop 7 n ++",")) parsed | 60 | --mapM (\(Header _ n _) -> putStrLn (drop 7 n ++",")) parsed |
@@ -180,7 +180,7 @@ showCt (Pointer s) = s ++ "*" | |||
180 | 180 | ||
181 | showCa (t, a) = showCt t ++" "++ a | 181 | showCa (t, a) = showCt t ++" "++ a |
182 | 182 | ||
183 | showH hc h@(Header t n args) = "foreign import ccall \""++hc++" "++n++"\" "++n++" :: "++ (concat$intersperse" -> "$map showHa args) ++" -> " ++ t' | 183 | showH hc h@(Header t n args) = "foreign import ccall \""++n++"\" "++n++" :: "++ (concat$intersperse" -> "$map showHa args) ++" -> " ++ t' |
184 | where t' | pure h = showHt t | 184 | where t' | pure h = showHt t |
185 | | otherwise = "IO "++showHt t | 185 | | otherwise = "IO "++showHt t |
186 | 186 | ||