diff options
author | stuebinm | 2024-07-04 18:09:13 +0200 |
---|---|---|
committer | stuebinm | 2024-07-04 18:09:13 +0200 |
commit | 234f3daa1439ace3db0cf2dbb92b83476afddd37 (patch) | |
tree | 2d6d551a75f5098c1e1bbd593ff4c1c3645aeac7 /src/Conftrack | |
parent | 3e71d0ab05c7f5fd71a75b86eeac6f8a1edc3a44 (diff) |
fix a couple warnings
Diffstat (limited to 'src/Conftrack')
-rw-r--r-- | src/Conftrack/Pretty.hs | 4 | ||||
-rw-r--r-- | src/Conftrack/Source/Trivial.hs | 4 | ||||
-rw-r--r-- | src/Conftrack/Value.hs | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/Conftrack/Pretty.hs b/src/Conftrack/Pretty.hs index 8a11204..cf10b20 100644 --- a/src/Conftrack/Pretty.hs +++ b/src/Conftrack/Pretty.hs @@ -3,14 +3,12 @@ module Conftrack.Pretty where -import Conftrack.Value (Origin (..), ConfigError, ConfigValue (..)) +import Conftrack.Value (Origin(..), ConfigError, ConfigValue(..), Key) import Conftrack (Warning) import Data.Map (Map) -import Conftrack.Value (Key) import qualified Data.Map.Strict as M import qualified Data.Text.IO as T import qualified Data.Text as T -import Data.List (sortOn) import GHC.Exts (groupWith) diff --git a/src/Conftrack/Source/Trivial.hs b/src/Conftrack/Source/Trivial.hs index ff22ee9..d4151c2 100644 --- a/src/Conftrack/Source/Trivial.hs +++ b/src/Conftrack/Source/Trivial.hs @@ -7,10 +7,10 @@ module Conftrack.Source.Trivial where -import Conftrack.Value (Key, Value(..), ConfigError(..), Origin) +import Conftrack.Value (Key, Value(..), ConfigError(..)) import Conftrack.Source (SomeSource(..), ConfigSource (..)) -import Control.Monad.State (get, modify, StateT (..), MonadState (..)) +import Control.Monad.State (get, modify, MonadState (..)) import Data.Map.Strict (Map) import qualified Data.Map.Strict as M import Data.Function ((&)) diff --git a/src/Conftrack/Value.hs b/src/Conftrack/Value.hs index 50e4e30..3eda24a 100644 --- a/src/Conftrack/Value.hs +++ b/src/Conftrack/Value.hs @@ -48,7 +48,7 @@ key = QuasiQuoter prefixedWith :: Key -> [KeyPart] -> Key -prefixedWith (Key key) prefix = Key (prependList prefix key) +prefixedWith (Key k) prefix = Key (prependList prefix k) data ConfigError = ParseError Text |