mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-16 20:03:27 +03:00
Fix compiler warnings
This commit is contained in:
parent
fddcd60d10
commit
fd4415803a
@ -27,7 +27,7 @@ import Cryptol.TypeCheck.Kind(checkType,checkSchema,checkTySyn,
|
||||
checkNewtype)
|
||||
import Cryptol.TypeCheck.Instantiate
|
||||
import Cryptol.TypeCheck.Depends
|
||||
import Cryptol.TypeCheck.Subst (listSubst,apSubst,fvs,(@@))
|
||||
import Cryptol.TypeCheck.Subst (listSubst,apSubst,(@@))
|
||||
import Cryptol.TypeCheck.Solver.InfNat(genLog)
|
||||
import Cryptol.Utils.Ident
|
||||
import Cryptol.Utils.Panic(panic)
|
||||
|
@ -20,7 +20,6 @@ module Cryptol.TypeCheck.InferTypes where
|
||||
|
||||
import Cryptol.TypeCheck.AST
|
||||
import Cryptol.TypeCheck.Subst
|
||||
import Cryptol.TypeCheck.TypeMap
|
||||
import Cryptol.Parser.Position
|
||||
import qualified Cryptol.Parser.AST as P
|
||||
import Cryptol.Utils.PP
|
||||
|
@ -16,11 +16,11 @@ module Cryptol.TypeCheck.Sanity
|
||||
|
||||
|
||||
import Cryptol.TypeCheck.AST
|
||||
import Cryptol.TypeCheck.Subst(apSubst, fvs, singleSubst)
|
||||
import Cryptol.TypeCheck.Subst (apSubst, singleSubst)
|
||||
import Cryptol.Utils.Ident
|
||||
|
||||
import qualified Data.Set as Set
|
||||
import Data.List(sort, sortBy)
|
||||
import Data.List (sort, sortBy)
|
||||
import Data.Function (on)
|
||||
import MonadLib
|
||||
import qualified Control.Applicative as A
|
||||
|
@ -3,7 +3,7 @@ module Cryptol.TypeCheck.SimpType where
|
||||
|
||||
import Control.Applicative((<|>))
|
||||
import Cryptol.TypeCheck.Type hiding
|
||||
(tAdd,tSub,tMul,tDiv,tMod,tExp,tMin,tMax,tWidth,tLenFromThen,tLenFromThenTo)
|
||||
(tSub,tMul,tDiv,tMod,tExp,tMin,tWidth,tLenFromThen,tLenFromThenTo)
|
||||
import Cryptol.TypeCheck.TypePat
|
||||
import Cryptol.TypeCheck.Solver.InfNat
|
||||
import Control.Monad(msum,guard)
|
||||
|
@ -2,7 +2,7 @@
|
||||
module Cryptol.TypeCheck.SimpleSolver ( simplify , simplifyStep) where
|
||||
|
||||
import Cryptol.TypeCheck.Type hiding
|
||||
( tAdd, tSub, tMul, tDiv, tMod, tExp, tMin, tMax, tWidth
|
||||
( tSub, tMul, tDiv, tMod, tExp, tMin, tWidth
|
||||
, tLenFromThen, tLenFromThenTo)
|
||||
import Cryptol.TypeCheck.Solver.Types
|
||||
import Cryptol.TypeCheck.Solver.Numeric.Fin(cryIsFinType)
|
||||
|
@ -21,7 +21,7 @@ import Cryptol.TypeCheck.PP(pp)
|
||||
import Cryptol.TypeCheck.AST
|
||||
import Cryptol.TypeCheck.Monad
|
||||
import Cryptol.TypeCheck.Subst
|
||||
(apSubst,fvs,singleSubst, isEmptySubst, substToList,
|
||||
(apSubst, singleSubst, isEmptySubst, substToList,
|
||||
emptySubst,Subst,listSubst, (@@), Subst,
|
||||
apSubstMaybe, substBinds)
|
||||
import qualified Cryptol.TypeCheck.SimpleSolver as Simplify
|
||||
@ -358,7 +358,7 @@ computeImprovements s gs =
|
||||
Right ints <- Num.getIntervals s
|
||||
return (Just (ints,su))
|
||||
case res of
|
||||
Just (ints,su) -> return (Right su) -- ?
|
||||
Just (_ints, su) -> return (Right su) -- ?
|
||||
{-
|
||||
| isEmptySubst su
|
||||
, (x,t) : _ <- mapMaybe (improveByDefn ints) gs ->
|
||||
|
Loading…
Reference in New Issue
Block a user