[Haskell-cafe] closed classes
ketil+haskell at ii.uib.no
Fri Aug 6 10:39:23 EDT 2004
Duncan Coutts <duncan.coutts at worcester.oxford.ac.uk> writes:
> closed class GConfValue v where
module Closed(foo) where
class C a where foo = ...
instance C ...
module Main where
do what you want? You can only use existing instances of C, but not
declare them (outside of the Closed module), IIUC.
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe