: [Haskell-cafe] Newbie question (again!) about phantom types
> I'm having difficulty to understand what phantom types are good for. Is
> this just for improving runtime performance?
No. As the wiki says, you can use them to add static guarantees.
> I read the wiki, and it says "th
On Aug 8, 2007, at 11:16 AM, peterv wrote:
I’m having difficulty to understand what phantom types are good
for. Is this
just for improving runtime performance?
I found phantom types to be useful in the implementation of bit-wise
set operations. You can find the code Edison:
http://ha
> Im having difficulty to understand what phantom types are good for. Is
> this just for improving runtime performance?
No. As the wiki says, you can use them to add static guarantees.
> I read the wiki, and it says "this is useful if you want to increase the
> type-safety of your code", but th
peterv wrote:
I’m having difficulty to understand what phantom types are good for.
I read the wiki, and it says "this is useful if you want to increase the
type-safety of your code", but the code below does not give a compiler error
for the function test1, I get a runtime error, just like test2
I’m having difficulty to understand what phantom types are good for. Is this
just for improving runtime performance?
I read the wiki, and it says "this is useful if you want to increase the
type-safety of your code", but the code below does not give a compiler error
for the function test1, I get