[Haskell-cafe] Error I haven't seen before

Albert Y. C. Lai trebla at vex.net
Thu Feb 28 20:00:46 EST 2008


Jefferson Heard wrote:
> Main: No match in record selector Protein.go_terms

data R = A { sa :: Int } | B { sb :: Int }

sa (A 0) works (as expected). sa (B 0) gives

*** Exception: No match in record selector Main.sa

I think that explains your problem.


More information about the Haskell-Cafe mailing list