paf31 / dovetail

A PureScript interpreter in Haskell
http://functorial.com/dovetail
BSD 3-Clause "New" or "Revised" License
119 stars 3 forks source link

Dictionary representation is incorrect #31

Closed paf31 closed 2 years ago

paf31 commented 2 years ago

This code:

class X a where
  x :: a

instance X String where
 x = ""

results in error

  Inexhaustive pattern match

In context:
  dict
  = { "x": ⋯ }

when evaluating x, presumably because the representation of type class dictionaries is not actually meant to be a record.