[Haskell-beginners] Attoparsec parser question
PICCA Frederic-Emmanuel
frederic-emmanuel.picca at synchrotron-soleil.fr
Thu Jun 1 17:33:00 UTC 2017
Hello Francesco
> maybe next time attach a simple .hs file which replicates the issue
> (with import modules, etc.), this way it is simpler to diagnose.
I will considere this next time.
> Just by scanning the code, this raises a red flag:
> > detectorP ∷ ToPyFAI a ⇒ a → Parser a
> > detectorP a = do
> > _ ← "Detector: " *> string (toPyFAI a) <* endOfLine
> > pure a
> "Detector: " is a plain String, so i guess putting a `string` before it
> (or whatever is needed) should solve the issue.
> Does that solve the problem?
I solved my problem doing something else, but thanks for your help.
thanks a lot
Fred
More information about the Beginners
mailing list