Skip to content

Commit f298f2b

Browse files
committed
Drop 'Default Bool' instance for data-default >= 0.8
1 parent 78c4cea commit f298f2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ihp/IHP/ModelSupport.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts, AllowAmbiguousTypes, UndecidableInstances, FlexibleInstances, IncoherentInstances, DataKinds, PolyKinds, TypeApplications, ScopedTypeVariables, ConstraintKinds, TypeOperators, GADTs, GeneralizedNewtypeDeriving #-}
1+
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts, AllowAmbiguousTypes, UndecidableInstances, FlexibleInstances, IncoherentInstances, DataKinds, PolyKinds, TypeApplications, ScopedTypeVariables, ConstraintKinds, TypeOperators, GADTs, GeneralizedNewtypeDeriving, CPP #-}
22

33
module IHP.ModelSupport
44
( module IHP.ModelSupport
@@ -182,9 +182,11 @@ instance Default Text where
182182
{-# INLINE def #-}
183183
def = ""
184184

185+
#if !MIN_VERSION_data_default(0,8,0)
185186
instance Default Bool where
186187
{-# INLINE def #-}
187188
def = False
189+
#endif
188190

189191
instance Default Point where
190192
def = Point def def

0 commit comments

Comments
 (0)