Skip to content

Commit

Permalink
Apply Hlint suggestions (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor authored Jul 26, 2022
1 parent 881f1e3 commit 27efc1e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- ignore: {name: "Use camelCase"}
- ignore: {name: "Redundant $"}
- ignore: {name: "Redundant bracket"}
- ignore: {name: "Functor law"}
- ignore: {name: "Use catMaybes"}
- ignore: {name: "Use <$>"}
- ignore: {name: "Eta reduce"}
Expand Down
3 changes: 0 additions & 3 deletions src/HIE/Bios/Config.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE LambdaCase #-}
-- | Logic and datatypes for parsing @hie.yaml@ files.
module HIE.Bios.Config(
readConfig,
Expand Down
1 change: 0 additions & 1 deletion src/HIE/Bios/Cradle.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
Expand Down
10 changes: 2 additions & 8 deletions src/HIE/Bios/Types.hs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DeriveFoldable #-}
{-# OPTIONS_GHC -Wno-orphans #-}

{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
module HIE.Bios.Types where

Expand Down Expand Up @@ -54,7 +48,7 @@ data ActionName a
| Other a
deriving (Show, Eq, Ord, Functor)

data Log =
data Log =
LogAny String
| LogProcessOutput String
deriving Show
Expand Down Expand Up @@ -148,7 +142,7 @@ instance Fail.MonadFail m => Fail.MonadFail (CradleLoadResultT m) where
#endif

instance MonadTrans CradleLoadResultT where
lift = CradleLoadResultT . liftM CradleSuccess
lift = CradleLoadResultT . fmap CradleSuccess
{-# INLINE lift #-}

instance (MonadIO m) => MonadIO (CradleLoadResultT m) where
Expand Down

0 comments on commit 27efc1e

Please sign in to comment.