rampion

Washington, DC

del.icio.us/rampion

Age: 34

Mathematician, programmer, and researcher; with interests in algorithmic design, software engineering theory, and massively parallel computing. I'm also a keyboard junkie and an aspiring language nerd.

1d
revised parse error on input 'let' Haskell
added 10 characters in body
1d
answered parse error on input 'let' Haskell
2d
answered How to deal with false positive on non-exhaustive pattern matches?
Jul
25
awarded Notable Question
Jul
24
reviewed Approve suggested edit on The reverse state monad in OCaml
Jul
24
comment Parsing single qoute char in a single-quoted string in parsec
You're trying to parse 'b'b', but in singleQuotedChar you require that single quotes only appear in pairs. Did you mean to try to parse 'b''b' as b'b? If you want 'b'b' to be parsable you need to change the definition of singleQuotedChar.
Jul
20
comment How to search a tuple and increment while saving the results
here's a hint: what line of sellTicket currently handles the case where the list doesn't contain a match. Also, James Franco was in Rise of the Planet of the Apes, not Planet of the Apes.
Jul
19
answered Searching through tuple of more than 2 elements
Jul
19
comment Haskell - writing a little parser
I meant the local definition of rd
Jul
19
comment Haskell - writing a little parser
bikeshedding: why not just integer :: Parser Int; integer = read <$> many1 digit. Replace a local definition with a global type signature.
Jul
19
answered How can I instantiate PrintfArg
Jul
17
comment No instance for (Show a) arising from a use of `X'
Also see ghc.haskell.org/trac/haskell-prime/wiki/NoDatatypeContexts
Jul
17
awarded Nice Question
Jul
17
comment Type signature of runErrorT
True, but, barring further knowledge of the Action monad, he can't get that from what he has.
Jul
17
revised Type signature of runErrorT
edited body
Jul
17
answered Type signature of runErrorT
Jul
17
comment No instance for (Show a) arising from a use of `X'
Nope. That's why you rarely see this pattern. See also stackoverflow.com/questions/1083508/…
Jul
13
comment viewing core when compiling with cabal
just for completeness, put the option in your ghc-options: for the library or executable section in your cabal file
Jul
11
comment Getting type of immutable vector in a mutable function
What do you want the vector generated by myvec to be populated with? If it's going to be immutable, you need to know at creation. Currently you've got it generating a vector of Int indexes.
Jul
11
comment Abnormally slow Haskell code
It's the thunks that were killing you; try my update.
1 2 3 4 5