[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jacques Carette <carette@m...> |
| Subject: | Re: [Caml-list] Phantom types: transparency vs rogue unification |
How about leaving your type opaque but changing your implementation of
parse to
let parse s = Stringies.make (float_of_string s)
?
In my tests, this works as you intended.
Note that I would personally implement Stringies_IO a Functor over
Stringies rather than having explicit dependencies.
Jacques