RSS Feed

Yeah, it’s been that kind of project

1

May 20, 2013 by Garrett Mitchener

I just got this lovely error message from the Haskell compiler:

./build-dbg Engine
[41 of 41] Compiling Engine           ( Engine.hs, dbg/Engine.o )

Engine.hs:147:5:
    My brain just exploded
    I can't handle pattern bindings for existential or GADT data constructors.
    Instead, use a case-expression, or do-notation, to unpack the constructor.
    In the pattern: BPPBox bProb
    In a pattern binding: BPPBox bProb = mkProb dir
    In the expression:
      let
        mkProb = inventory M.! problemName
        BPPBox bProb = mkProb dir
      in
        do { checkProblemName problemName;
             createDirectoryIfMissing True dir;
             msgInfo
               ("Flag to keep dead genomes initialized to " ++ show keepDead);
             .... }

1 comment »

  1. Ruhid says:

    Don’t worry every problem has a solution and every project is not successful until it pops an error. Like you mever complete a game without failing once. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Skip to toolbar