Skip to content
Snippets Groups Projects
Commit d7aed5e6 authored by Simon Marlow's avatar Simon Marlow Committed by Ian Lynagh
Browse files

Add two new primops:

  seq#   :: a -> State# s -> (# State# s, a #)
  spark# :: a -> State# s -> (# State# s, a #)

seq# is a version of seq that can be used in a State#-passing
context.  We will use it to implement Control.Exception.evaluate and
thus fix #5129.  Also we have plans to use it to fix #5262.

spark# is to seq# as par is to pseq.  That is, it creates a spark in a
State#-passing context.  We will use spark# and seq# to implement rpar
and rseq respectively in an improved implementation of the Eval monad.
parent f9129b03
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment