kazu-yamamoto / iproute

IP Routing Table in Haskell
http://www.mew.org/~kazu/proj/iproute/
BSD 3-Clause "New" or "Revised" License
47 stars 28 forks source link

What about better fail information from `read`? #30

Open qrilka opened 8 years ago

qrilka commented 8 years ago

Currently I see

λ> "1" :: IP
*** Exception: Prelude.read: no parse

it's easily discoverable in REPL but what if IP appears to be somewhere deep inside of some program internal structure? I think something like Safe.readNote "Data.IP.read" would be better.