[clean-list] State-transformer monad and uniqueness typing...

Martin Wierich martinw@cs.kun.nl
Mon, 22 Jan 2001 13:24:13 +0100


Isabelle wrote:
> I have defined as follows the state-transformer monad type :
> 
> :: STM s x = { stm :: s -> ( s , x ) }
...
> I do not send detailed sources here because I suspect there is a basic
> flaw in the STM type definition, clashing with uniqueness typing, but I
> can't see where...

Try

  :: STM *s x = { stm :: .(s -> ( s , x )) }

cheers
  Martin Wierich