Skip to content

Commit

Permalink
Add roles declarations to forbid unsafe coercions
Browse files Browse the repository at this point in the history
  • Loading branch information
kl0tl committed Nov 18, 2020
1 parent 5818ebd commit e616a86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Effect/Aff/Bus.purs
Expand Up @@ -31,6 +31,8 @@ data Cap

data Bus (r ∷ # Type) a = Bus (AVar a) (AVar (List (AVar a)))

type role Bus nominal representational

type BusR = BusR' ()

type BusR' r = Bus (readCap | r)
Expand Down

0 comments on commit e616a86

Please sign in to comment.