That seems a really weird way to write it! Who decided all auxiliary functions should be called go? (I think I'm blaming dons) - why not:
sffi :: (Integral a,Num a) => Integer -> Maybe a
sffi n | toInteger n2 == n = Just n2
| otherwise = Nothing
where n2 = fromInteger n
No need for auxiliary function definitions.
Thanks
Neil
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
