forked from ucsd-progsys/liquidhaskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow bare embeds and cmeasures into a LiftedSpec
This commit changes 'makeLiftedSpec0' so that we allow input 'embeds' and 'cmeasures' to survive the lifting process. Something to bear in mind in that probably we would have to adjust the format of the correspondent types, as it might make no sense to talk about a 'LocSymbol' for something serialised into an interface file.
- Loading branch information
Showing
4 changed files
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
module GHC.Prim (module Exports) where | ||
|
||
{-@ embed GHC.Prim.Int# as int @-} | ||
{-@ class measure len :: forall f a. f a -> GHC.Prim.Int# @-} | ||
{-@ embed GHC.Prim.Int# as int @-} | ||
{-@ embed GHC.Prim.Addr# as Str @-} | ||
{-@ embed GHC.Prim.Char# as Char @-} | ||
{-@ embed GHC.Prim.Double# as real @-} | ||
{-@ embed GHC.Prim.Float# as real @-} | ||
{-@ embed GHC.Prim.Word# as int @-} | ||
{-@ GHC.Prim.+# :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v: GHC.Prim.Int# | v = x + y} @-} | ||
{-@ GHC.Prim.-# :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v: GHC.Prim.Int# | v = x - y} @-} | ||
{-@ GHC.Prim.==# :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v:GHC.Prim.Int# | v = 1 <=> x = y} @-} | ||
{-@ GHC.Prim.>=# :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v:GHC.Prim.Int# | v = 1 <=> x >= y} @-} | ||
{-@ GHC.Prim.<=# :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v:GHC.Prim.Int# | v = 1 <=> x <= y} @-} | ||
{-@ GHC.Prim.<# :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v:GHC.Prim.Int# | v = 1 <=> x < y} @-} | ||
{-@ GHC.Prim.># :: x:GHC.Prim.Int# -> y:GHC.Prim.Int# -> {v:GHC.Prim.Int# | v = 1 <=> x > y} @-} | ||
|
||
import "ghc-prim" GHC.Prim as Exports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters