[Haskell-cafe] Lisp like symbols in haskell

Vladimir Zlatanov vlado at dikini.net
Tue Dec 8 06:13:48 EST 2009


<jeanchristophe.mincke at gmail.com> wrote:
> I think lisp like symbols could be quite useful in the context of embedded
> DSL to create ... well... symbols that can be interpreted as variables in
> that DSL.

Well for such use-case you could use either stable names, or recode
them into a state monad- you will get either a global i.e. lisp like
unique symbols, or their equivalent within a state context. Or some
variation of the code posted previously in this thread.

http://www.haskell.org/ghc/docs/6.10.4/html/libraries/base/System-Mem-StableName.html


More information about the Haskell-Cafe mailing list