Skip to content

Commit

Permalink
removing undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jul 13, 2011
1 parent 4ae185a commit ece2b4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FileCache.hs
Expand Up @@ -57,5 +57,5 @@ fileCacheInit = do
remover :: IORef Cache -> IO ()
remover ref = do
threadDelay 10000000
_ <- atomicModifyIORef ref (\_ -> (M.empty, undefined))
_ <- atomicModifyIORef ref (\_ -> (M.empty, ()))
remover ref
2 changes: 1 addition & 1 deletion Log.hs
Expand Up @@ -120,7 +120,7 @@ clockInit = do
clock :: TimeRef -> IO ()
clock timeref@(TimeRef ref) = do
tmstr <- timeByteString
atomicModifyIORef ref (\_ -> (tmstr, undefined))
atomicModifyIORef ref (\_ -> (tmstr, ()))
threadDelay 1000000
clock timeref

Expand Down
2 changes: 1 addition & 1 deletion mkindex.hs
Expand Up @@ -57,7 +57,7 @@ ppSize st
| otherwise = sizeFormat . fromIntegral . fileSize $ st
where
sizeFormat siz = unit siz " KMGT"
unit _ [] = undefined
unit _ [] = error "unit"
unit s [u] = format s u
unit s (u:us)
| s >= 1024 = unit (s `div` 1024) us
Expand Down

0 comments on commit ece2b4e

Please sign in to comment.