Browse files

Remove build warnings througout (default warn level)

  • Loading branch information...
1 parent 7f4c64d commit cb00d400b71b2692463ac106a5adb4312122171d @kfish committed Oct 7, 2011
Showing with 6 additions and 4 deletions.
  1. +1 −1 Codec/Container/Ogg/Dump.hs
  2. +2 −0 Codec/Container/Ogg/Serial.hs
  3. +1 −0 Codec/Container/Ogg/Skeleton.hs
  4. +2 −2 hogg.cabal
  5. +0 −1 tools/hogg.hs
View
2 Codec/Container/Ogg/Dump.hs
@@ -30,7 +30,7 @@ hexDump' o d
| L.null d = C.empty
| otherwise = lineDump `C.append` hexDump' (o+16) rest
where (line, rest) = {-# SCC "LsplitAt" #-} L.splitAt 16 d
- lineDump = {-# "Cpack" #-} C.pack $ {-# SCC "lineDump" #-} spaces 4 ++ offset ++ ": " ++ hexLine ++ spaces hexPad ++ ascLine ++ "\n"
+ lineDump = {-# SCC "Cpack" #-} C.pack $ {-# SCC "lineDump" #-} spaces 4 ++ offset ++ ": " ++ hexLine ++ spaces hexPad ++ ascLine ++ "\n"
spaces n = {-# SCC "spaces" #-} take n $ repeat ' '
offset = {-# SCC "offset" #-} hexOffset o
View
2 Codec/Container/Ogg/Serial.hs
@@ -1,4 +1,6 @@
{-# LANGUAGE TypeSynonymInstances #-}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+
-- Module : Serial
-- Copyright : (c) Conrad Parker 2007
-- License : BSD-style
View
1 Codec/Container/Ogg/Skeleton.hs
@@ -1,3 +1,4 @@
+{-# OPTIONS_GHC -fno-warn-orphans #-}
--
-- Module : Skeleton
-- Copyright : (c) Conrad Parker 2006
View
4 hogg.cabal
@@ -65,7 +65,7 @@ library
Codec.Container.Ogg.Dump
Codec.Container.Ogg.List
Codec.Container.Ogg.MessageHeaders
- ghc-options: -Wall -fglasgow-exts -O2 -funbox-strict-fields
+ ghc-options: -Wall -O2 -funbox-strict-fields
-- ghc-options: -prof -auto-all
------------------------------------------------------------------------
@@ -75,7 +75,7 @@ Executable hogg
Main-Is: hogg.hs
Hs-Source-Dirs: ., tools
- ghc-options: -Wall -fglasgow-exts -O2 -funbox-strict-fields
+ ghc-options: -Wall -O2 -funbox-strict-fields
Extensions: CPP
if flag(http)
View
1 tools/hogg.hs
@@ -5,7 +5,6 @@ import System.Exit
import System.IO
import Control.Monad.Reader
-import Control.Monad
import Control.Exception
#ifdef USE_HTTP

0 comments on commit cb00d40

Please sign in to comment.