the impossible happened

Bulat Ziganshin bulatz at HotPOP.com
Mon May 23 11:59:45 EDT 2005


Hello Donald,

Monday, May 23, 2005, 4:06:08 PM, you wrote:

>> also it will be cool to have ability to add such annotations to my own
>> functions, smthg like:
>> 
>> head (x:xs) = x
>> head [] = superError "head []"
>> 
>> which will print: "Error: head [] in Module.hs:155"

DBS> You can do this already with GHC.Base.assert (almost):

sorry, i want to get message with linenumber where head was CALLED,
not defined


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com






More information about the Glasgow-haskell-bugs mailing list