[Haskell-cafe] What symbol / atom/ interned-string package is currently preferred?

Anthony Cowley acowley at seas.upenn.edu
Tue May 7 21:35:40 CEST 2013


On Tue, May 7, 2013 at 2:58 PM, Ryan Newton <rrnewton at gmail.com> wrote:
> Hi cafe,
>
> I use symbols all the time when manipulating code.  I vacillate between
> using stringtable-atom, symbol, and simple-atom.  Unfortunately:
>
> Stringtable-atom is has a broken build right now (GHC 7.6).  (Also I've had
> some crashes with it in the past.)
> simple-atom has dependency upper bounds that restrict it to GHC <= 7.0
> "symbol" has a design flaw, which is that it exposes the constructor for
> Symbol, which reveals the (nondeterministic) unique Int IDs.  I.e. it is not
> "SafeHaskell".
>
> I submitted a pull request to relax simple-atom, but perhaps there are other
> packages people use with which I am not aware?
>
> Thanks,
>   -Ryan

This package is current and maintained:

http://hackage.haskell.org/package/intern

Anthony



More information about the Haskell-Cafe mailing list