Skip to content

Instantly share code, notes, and snippets.

@hrajchert
Last active May 13, 2019 03:56
Show Gist options
  • Select an option

  • Save hrajchert/89c398da3005a5569da4f7000ddfcd6d to your computer and use it in GitHub Desktop.

Select an option

Save hrajchert/89c398da3005a5569da4f7000ddfcd6d to your computer and use it in GitHub Desktop.

Revisions

  1. hrajchert created this gist May 13, 2019.
    5 changes: 5 additions & 0 deletions mutable1.purs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    run :: forall a. (forall r. ST r a) -> a
    myDoExpr :: forall r. ST r Int

    mutable1 :: Int
    mutable1 = run myDoExpr