File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ instance Show WindowsString where
68
68
pattern WS :: BS. ShortByteString -> WindowsString
69
69
pattern WS { unWS } <- WindowsString unWS where
70
70
WS a = WindowsString a
71
+ #if __GLASGOW_HASKELL__ >= 802
71
72
{-# COMPLETE WS #-}
73
+ #endif
72
74
73
75
74
76
instance Lift WindowsString where
@@ -93,7 +95,9 @@ instance Show PosixString where
93
95
pattern PS :: BS. ShortByteString -> PosixString
94
96
pattern PS { unPS } <- PosixString unPS where
95
97
PS a = PosixString a
98
+ #if __GLASGOW_HASKELL__ >= 802
96
99
{-# COMPLETE PS #-}
100
+ #endif
97
101
98
102
instance Lift PosixString where
99
103
lift (PosixString bs)
@@ -127,13 +131,17 @@ instance Show PosixChar where
127
131
pattern WW :: Word16 -> WindowsChar
128
132
pattern WW { unWW } <- WindowsChar unWW where
129
133
WW a = WindowsChar a
134
+ #if __GLASGOW_HASKELL__ >= 802
130
135
{-# COMPLETE WW #-}
136
+ #endif
131
137
132
138
-- | Just a short bidirectional synonym for 'PosixChar' constructor.
133
139
pattern PW :: Word8 -> PosixChar
134
140
pattern PW { unPW } <- PosixChar unPW where
135
141
PW a = PosixChar a
142
+ #if __GLASGOW_HASKELL__ >= 802
136
143
{-# COMPLETE PW #-}
144
+ #endif
137
145
138
146
#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
139
147
type PlatformChar = WindowsChar
You can’t perform that action at this time.
0 commit comments