Skip to content

Commit

Permalink
[feat] derive generic for solo
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV committed Aug 31, 2023
1 parent 45cebd9 commit ef75231
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generics-sop/src/Generics/SOP/Instances.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ import Text.Read.Lex
import Generics.SOP.BasicFunctors
import Generics.SOP.Classes
import Generics.SOP.TH
#if MIN_VERSION_base(4,15,0)
import Data.Tuple (Solo)
#endif

-- Types from Generics.SOP:

Expand All @@ -90,6 +93,9 @@ deriveGeneric ''Ordering
deriveGeneric ''Maybe
deriveGeneric ''Either
deriveGeneric ''()
#if MIN_VERSION_base(4,15,0)
deriveGeneric ''Solo
#endif
deriveGeneric ''(,) -- 2
deriveGeneric ''(,,)
deriveGeneric ''(,,,)
Expand Down

0 comments on commit ef75231

Please sign in to comment.