logo       

Re[2]: the impossible happened: msg#00110

lang.haskell.glasgow.bugs

Subject: Re[2]: the impossible happened

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@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise