Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Jul 17, 2024
1 parent 05f719a commit 147a003
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions persistent-postgresql/Database/Persist/Postgresql.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPatterns #-}

#if MIN_VERSION_base(4,12,0)
Expand Down Expand Up @@ -107,7 +108,7 @@ import Data.Either (partitionEithers)
import Data.Function (on)
import Data.Int (Int64)
import Data.IORef
import Data.List (find, foldl', groupBy, sort)
import Data.List as List (find, foldl', groupBy, sort)
import qualified Data.List as List
import Data.List.NonEmpty (NonEmpty)
import qualified Data.Map as Map
Expand Down Expand Up @@ -845,7 +846,7 @@ getColumns getter def cols = do
refMap =
fmap (\cr -> (crTableName cr, crConstraintName cr))
$ Map.fromList
$ foldl' ref [] cols
$ List.foldl' ref [] cols
where
ref rs c =
maybe rs (\r -> (unFieldNameDB $ cName c, r) : rs) (cReference c)
Expand Down
1 change: 1 addition & 0 deletions persistent-redis/tests/basic-test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Main where
Expand Down
1 change: 1 addition & 0 deletions persistent-test/src/EmbedTest.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wno-orphans -O0 #-}
{-# OPTIONS_GHC -Wno-unused-top-binds #-}
module EmbedTest (specsWith, cleanDB, embedMigrate) where
Expand Down
1 change: 1 addition & 0 deletions persistent-test/src/EmptyEntityTest.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wno-unused-top-binds #-}
module EmptyEntityTest (specsWith, migration, cleanDB) where

Expand Down
1 change: 1 addition & 0 deletions persistent-test/src/ForeignKey.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE AllowAmbiguousTypes, GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables, TypeApplications, UndecidableInstances #-}
{-# LANGUAGE TypeOperators #-}

module ForeignKey where

Expand Down
3 changes: 2 additions & 1 deletion persistent/Database/Persist/ImplicitIdDef/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeOperators #-}

-- | WARNING: This is an @Internal@ module. As such, breaking changes to the API
-- of this module will not have a corresponding major version bump.
Expand Down

0 comments on commit 147a003

Please sign in to comment.