Skip to content

Commit

Permalink
Avoid specifying unnecessary language extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Nov 8, 2024
1 parent e9c0641 commit a63cef9
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 18 deletions.
1 change: 1 addition & 0 deletions hw-prelude.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ common project-config
FlexibleContexts
FlexibleInstances
LambdaCase
MultiWayIf
NoFieldSelectors
NoImplicitPrelude
OverloadedRecordDot
Expand Down
3 changes: 0 additions & 3 deletions src/HaskellWorks/Error/Types.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE TypeSynonymInstances #-}

module HaskellWorks.Error.Types (
GenericError (..),
TimedOut(..),
Expand Down
4 changes: 0 additions & 4 deletions src/HaskellWorks/Error/Types/GenericError.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE TypeSynonymInstances #-}

module HaskellWorks.Error.Types.GenericError (
GenericError (..),
) where
Expand Down
4 changes: 0 additions & 4 deletions src/HaskellWorks/Error/Types/TimedOut.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE TypeSynonymInstances #-}

module HaskellWorks.Error.Types.TimedOut (
TimedOut (..),
) where
Expand Down
2 changes: 0 additions & 2 deletions src/HaskellWorks/IO/Network/Port.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE TypeApplications #-}

module HaskellWorks.IO.Network.Port
( randomPort,
reserveRandomPort,
Expand Down
3 changes: 0 additions & 3 deletions src/HaskellWorks/IO/Network/Socket.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

module HaskellWorks.IO.Network.Socket
( doesSocketExist,
isPortOpen,
Expand Down
3 changes: 1 addition & 2 deletions src/HaskellWorks/IO/Win32/NamedPipe.hsc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <fcntl.h>
#include <windows.h>

{-# LANGUAGE CPP #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE CPP #-}

-- | For full details on the Windows named pipes API see
-- <https://docs.microsoft.com/en-us/windows/desktop/ipc/named-pipes>
Expand Down

0 comments on commit a63cef9

Please sign in to comment.