Skip to content

Commit

Permalink
update include
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjitjhala committed Mar 6, 2017
1 parent 949fa0a commit bea9d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/GHC/ForeignPtr.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module spec GHC.ForeignPtr where

measure fplen :: GHC.ForeignPtr.ForeignPtr a -> GHC.Types.Int

type ForeignPtrV a = {v: (GHC.ForeignPtr.ForeignPtr a) | 0 <= (fplen v)}
type ForeignPtrN a N = {v: (ForeignPtrV a) | (fplen v) = N }
type ForeignPtrV a = {v: GHC.ForeignPtr.ForeignPtr a | 0 <= fplen v}
type ForeignPtrN a N = {v: GHC.ForeignPtr.ForeignPtr a | 0 <= fplen v && fplen v == N }

mallocPlainForeignPtrBytes :: n:{v:GHC.Types.Int | v >= 0 } -> (GHC.Types.IO (ForeignPtrN a n))

0 comments on commit bea9d84

Please sign in to comment.