[Haskell] System.FilePath survey
Einar Karttunen
ekarttun at cs.helsinki.fi
Tue Feb 7 18:29:58 EST 2006
On 07.02 10:48, Bulat Ziganshin wrote:
> Hello Ben,
>
> Tuesday, February 07, 2006, 1:33:44 AM, you wrote:
> >> 1) all operations that returns filenames (getFileContents, anything
> >> more?) should return this ADT instead
>
> BRG> Also, getArgs should return [ADT].
Just define:
getArgsAdt :: IO [ADT]
getArgsAdt = ...
getArgs :: IO [String]
getArgs = fmap ADT.toString getArgsAdt
- Einar Karttunen
More information about the Libraries
mailing list