Skip to content

Commit

Permalink
Cleaned up warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahawkins committed Jan 26, 2016
1 parent 79a39a0 commit 122b243
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Language/Atom/Code.hs
Expand Up @@ -433,9 +433,9 @@ declState define a' = if isHierarchyEmpty a' then ""
++ intercalate ("\n" ++ i ++ ", ") (map showConst c) ++ "\n" ++ i ++ "}"

isHierarchyEmpty h = case h of
StateHierarchy n i -> if null i then True else and $ map isHierarchyEmpty i
StateVariable n c -> False
StateArray n c -> False
StateHierarchy _ i -> if null i then True else and $ map isHierarchyEmpty i
StateVariable _ _ -> False
StateArray _ _ -> False

codeRule :: UeMap -> Config -> Rule -> String
codeRule mp config rule@(Rule _ _ _ _ _ _ _) =
Expand Down
1 change: 0 additions & 1 deletion Language/Atom/Elaboration.hs
Expand Up @@ -30,7 +30,6 @@ module Language.Atom.Elaboration
, allUEs
) where

import Control.Applicative (Applicative, pure, (<*>))
import Control.Monad (ap)
import Control.Monad.Trans
import Data.Function (on)
Expand Down
4 changes: 4 additions & 0 deletions Language/Atom/Expressions.hs
Expand Up @@ -600,6 +600,10 @@ instance (Expr a, OrdE a, EqE a, IntegralE a, Bits a) => Bits (E a) where

shiftL _ _ = error "shiftL undefined, for left-shifting use .<<."
shiftR _ _ = error "shiftR undefined, for right-shifting use .>>."
bitSizeMaybe = error "bitSizeMaybe undefined"
testBit = error "testBit undefinied"
bit = error "bit undefinied"
popCount = error "popCount undefined"

rotateL _ _ = error "rotateL undefined, for left-rotation use rol"
rotateR _ _ = error "rotateR undefined, for right-rotation use ror"
Expand Down

0 comments on commit 122b243

Please sign in to comment.