-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a module for the instantiation code
- Loading branch information
Showing
6 changed files
with
66 additions
and
36 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Cryptol.TypeCheck.ModuleBacktickInstance where | ||
|
||
import Data.Map(Map) | ||
import qualified Data.Map as Map | ||
|
||
import Cryptol.Parser.Position (Located(..), thing) | ||
import qualified Cryptol.Parser.AST as P | ||
import Cryptol.TypeCheck.AST | ||
import Cryptol.TypeCheck.Monad | ||
|
||
doBacktickInstance :: | ||
Located (P.ImpName Name) {- ^ Name for the new module -} -> | ||
ModuleG () {- ^ The functor -} -> | ||
Map Name Name {- ^ The instantiation: functor name -> instance name -} -> | ||
InferM (ModuleG (Located (P.ImpName Name))) | ||
doBacktickInstance m mf inst = undefined |