[Haskell-cafe] Hacking Hawk
Iavor Diatchki
iavor.diatchki at gmail.com
Wed Mar 1 15:46:35 EST 2006
Hello,
I am not familiar with the details of Hawk, but you can find STArray
in Data.Array.ST,
and the functions to read, write, and create them are 'readArray',
'writeArray', and 'newArray' (see Data.Array.MArray).
-Iavor
On 3/1/06, szefirov at ot.ru <szefirov at ot.ru> wrote:
> Hawk didn't updated from GHC v4.04. It does contain dependencies on
> functions that are present in my current (6.04) GHC distribution, but
> they are not documented.
>
> Those functions and constructors are (just a error log from ghc):
> ---------------------------
> AQ.lhs:17:16: Not in scope: type constructor or class `STArray'
>
> AQ.lhs:82:14: Not in scope: `newSTArray'
>
> AQ.lhs:92:21: Not in scope: `writeSTArray'
>
> AQ.lhs:258:27: Not in scope: `readSTArray'
>
> AQ.lhs:262:27: Not in scope: `writeSTArray'
> ---------------------------
>
> They are in GHC.Arr module now. I found that googling for their name.
>
> They also changed their types so that they are not compatible with
> Control.Monad.ST (previous versions were compatible with LazyST).
>
> What does they do?
>
> Is it possible to rewrite them for current version of ghc?
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
More information about the Haskell-Cafe
mailing list