[Haskell-cafe] Please critique my code (a simple lexer)
Lorenzo Bolla
lbolla at gmail.com
Wed May 23 13:06:12 CEST 2012
> On Tue, May 22, 2012 at 4:13 PM, John Simon <zildjohn01 at gmail.com> wrote:
>
>> data Lexer = Lexer String
>>
>> makeLexer :: String -> Lexer
>> makeLexer fn = Lexer fn
>
>
`makeLexer` is redundant. You can simply use `Lexer`.
L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120523/4c5cd192/attachment.htm>
More information about the Haskell-Cafe
mailing list