git.iko.soy/typeable/http-api-data
on master help sign in
Fix unticked promoted constructors warning
commit57c0a23724b3a28bc8a9c3f48b7eb67cffe23135 authorNickolay Kudasov <nickolay.kudasov@gmail.com> dateWed 31 Aug 2016, 02:38 (10 years ago) parent7a7b274
1 file changed+3−4
src/Web/Internal/FormUrlEncoded.hs+3−4
src/Web/Internal/FormUrlEncoded.hs+3−4
@@ -1,4 +1,3 @@
1−{-# OPTIONS_GHC -Wno-unticked-promoted-constructors #-}
21{-# LANGUAGE CPP #-}
32{-# LANGUAGE DataKinds #-}
43{-# LANGUAGE DefaultSignatures #-}
@@ -257,9 +256,9 @@ type family NotSupported (cls :: k1) (a :: k2) (reason :: Symbol) :: Constraint
257256#if __GLASGOW_HASKELL__ < 800
258257#else
259258 NotSupported cls a reason = TypeError
260− ( 'Text "Cannot derive a Generic-based " :<>: 'ShowType cls :<>: 'Text " instance for " :<>: 'ShowType a :<>: 'Text "." :$$:
261− 'ShowType a :<>: 'Text " " :<>: 'Text reason :<>: 'Text "," :$$:
262− 'Text "but Generic-based " :<>: 'ShowType cls :<>: 'Text " instances can be derived only for records" :$$:
259+ ( 'Text "Cannot derive a Generic-based " ':<>: 'ShowType cls ':<>: 'Text " instance for " ':<>: 'ShowType a ':<>: 'Text "." ':$$:
260+ 'ShowType a ':<>: 'Text " " ':<>: 'Text reason ':<>: 'Text "," ':$$:
261+ 'Text "but Generic-based " ':<>: 'ShowType cls ':<>: 'Text " instances can be derived only for records" ':$$:
263262 'Text "(i.e. product types with named fields)." )
264263#endif
265264