summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/auto.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
committerAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
commite58f1e0e94407983fa18cd535cf76427019f1519 (patch)
tree4ffffdb92fd78e2233485895fb288111af0bf386 /lib/Numeric/GSL/Special/auto.hs
parent45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff)
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/auto.hs')
-rw-r--r--lib/Numeric/GSL/Special/auto.hs34
1 files changed, 19 insertions, 15 deletions
diff --git a/lib/Numeric/GSL/Special/auto.hs b/lib/Numeric/GSL/Special/auto.hs
index c8b0529..6727399 100644
--- a/lib/Numeric/GSL/Special/auto.hs
+++ b/lib/Numeric/GSL/Special/auto.hs
@@ -67,23 +67,26 @@ main = do
67 ++"import Numeric.GSL.Special.Internal\n" 67 ++"import Numeric.GSL.Special.Internal\n"
68 let mod = modhead name ++ "module Numeric.GSL.Special."++ upperFirst name++exports++imports++defs 68 let mod = modhead name ++ "module Numeric.GSL.Special."++ upperFirst name++exports++imports++defs
69 writeFile (upperFirst name ++ ".hs") mod 69 writeFile (upperFirst name ++ ".hs") mod
70-- appendFile "funs.txt" $ rep ("(\n ","-- * "
71-- ++map toUpper name
72-- -- ++"\n"++google ( "gsl_sf_"++name++".h")++"\n"
73-- ++"\n,") $ rep (") where","") $ exports
70 74
71 75
72google name = "<http://www.google.com/search?q=" 76google name = "<http://www.google.com/search?q="
73 ++name 77 ++name
74 ++"&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>" 78 ++"&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>"
75 79
76modhead name = replicate 60 '-' ++ "\n" 80modhead name = replicate 60 '-' ++ "\n-- |\n"
77 ++"{- |\n" 81 ++"-- Module : Numeric.GSL.Special."++upperFirst name++"\n"
78 ++"Module : Numeric.GSL.Special."++upperFirst name++"\n" 82 ++"-- Copyright : (c) Alberto Ruiz 2006\n"
79 ++"Copyright : (c) Alberto Ruiz 2006\n" 83 ++"-- License : GPL\n"
80 ++"License : GPL-style\n" 84 ++"-- Maintainer : Alberto Ruiz (aruiz at um dot es)\n"
81 ++"Maintainer : Alberto Ruiz (aruiz at um dot es)\n" 85 ++"-- Stability : provisional\n"
82 ++"Stability : provisional\n" 86 ++"-- Portability : uses ffi\n"
83 ++"Portability : uses ffi\n" 87 ++"--\n"
84 ++"\nWrappers for selected functions described at:\n\n" 88 ++"-- Wrappers for selected functions described at:\n--\n-- "
85 ++ google ( "gsl_sf_"++name++".h") 89 ++ google ( "gsl_sf_"++name++".h")++"\n"
86 ++"\n\n-}\n"
87 ++ replicate 60 '-' ++ "\n\n" 90 ++ replicate 60 '-' ++ "\n\n"
88 91
89upperFirst (x:xs) = toUpper x : xs 92upperFirst (x:xs) = toUpper x : xs
@@ -194,10 +197,11 @@ showHt (Pointer t) = "Ptr "++ht t
194 197
195showHa (t,a) = showHt t 198showHa (t,a) = showHt t
196 199
197showFull hc h@(Header t n args) = "\n-- | wrapper for "++showC h 200showFull hc h@(Header t n args) = -- "\n-- | wrapper for "++showC h
198 ++"\n--\n-- "++google n ++"\n" 201 -- ++"\n--\n-- "++google n ++"\n"
199 ++ boiler h ++"\n" 202 -- ++ "\n" ++
200 ++showH hc h 203 boiler h ++ "\n" ++
204 showH hc h
201 205
202fixmd1 = rep ("Gsl_mode_t","Precision") 206fixmd1 = rep ("Gsl_mode_t","Precision")
203fixmd2 = rep ("mode"," (precCode mode)") 207fixmd2 = rep ("mode"," (precCode mode)")