[Haskell-cafe] Non-atomic "atoms" for type-level programming
Claus Reinke
claus.reinke at talk21.com
Wed Apr 22 10:23:53 EDT 2009
in case anyone stumbles over my ad-hoc notations, that should have been:
> module A[type label] where x = undefined :: label
> module B[type label] where x = undefined :: label
> module C[type label] where
> import A[label]
> import B[label]
> ok = [A.x,B.x]
assuming that:
- 'module X[types]' means a module parameterized by 'types'
- 'import X[types]' means a module import with parameters 'types'.
Claus
More information about the Haskell-Cafe
mailing list