1 -- !!! Selectors for data and newtypes with contexts
3 -- This program, reported in Aug'00 by Jose Emilio Labra Gayo
4 -- gave rise to a Lint error because the selector 'newout' below
7 -- but lacked a dictionary argument in its body.
11 newtype (Eq f) => NewT f = NewIn { newout :: f }
12 data (Eq f) => DataT f = DataIn { dataout :: f }
14 main = print (newout (NewIn "ok new") ++ dataout (DataIn " ok data"))