toString (Just 0.5)
Just 0.5
So Strings are just cast into the result. Non-strings become Nothing,
which fromMaybe turns into (show x).
--
Nicholas Messenger
[EMAIL PROTECTED]
On Nov 6, 2007 4:23 PM, Graham Fawcett [EMAIL PROTECTED] wrote:
On Nov 6, 2007 3:29 PM, Graham Fawcett [EMAIL PROTECTED
, and
-- futz around with the splices.
--
-- -- Nicholas Messenger (nmessenger at gmail.com, omnId on #haskell)
module CompileTime(compileTimeEval, compileTimeIO) where
import Data.Generics
import Language.Haskell.TH
import Control.Monad
import Data.Tree
import Data.Ratio
-- Expands a datum
toExp and
it already exists?!?
GRRAGGHHRAWWRRRAAGGGH!
*sob*
...
Ah, well, I learned me some Data.Generics anyway. :3
-- Nicholas Messenger (nmessenger at gmail.com, omnId on #haskell)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org