soenkehahn / getopt-generics

Create command line interfaces with ease
Other
41 stars 3 forks source link

Simplify mapFieldInfoM. #26

Closed kosmikus closed 9 years ago

kosmikus commented 9 years ago

Yes, this is a similar situation as in the other file. You want a monadic/applicative map which isn't directly available. However, you can use a normal map (hliftA) followed by sequencing (hsequence') to get the same effect.

soenkehahn commented 9 years ago

Thanks very much.