6 Oct 07:32
a really juvenile question .. hehehehe ;^)
From: Galchin, Vasili <vigalchin <at> gmail.com>
Subject: a really juvenile question .. hehehehe ;^)
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-10-06 05:35:38 GMT
Subject: a really juvenile question .. hehehehe ;^)
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-10-06 05:35:38 GMT
Hello,
I am reading some extant Haskell code that uses Posix signals.... I am confused by the motivation of the following ...
OK .. "type" is really just a synomym and doesn't invoke type checking like "data" type declarations do .. so why don't we have all the "CInts" substituted by "Signal"? I.e. what did I miss?
Thanks, Vasili
I am reading some extant Haskell code that uses Posix signals.... I am confused by the motivation of the following ...
| type Signal = CInt |
| nullSignal :: Signal |
| internalAbort :: Signal |
| sigABRT :: CInt |
| realTimeAlarm :: Signal |
| sigALRM :: CInt |
| busError :: Signal |
| sigBUS :: CInt |
OK .. "type" is really just a synomym and doesn't invoke type checking like "data" type declarations do .. so why don't we have all the "CInts" substituted by "Signal"? I.e. what did I miss?
Thanks, Vasili
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed