@@ -190,7 +190,7 @@ parseUrlPieceWithPrefix pattern input
190-- instance FromHttpApiData MyData where
190-- instance FromHttpApiData MyData where
191-- parseUrlPiece = parseBoundedTextData
191-- parseUrlPiece = parseBoundedTextData
193−parseBoundedTextData :: forall a. (TextShow a, Bounded a, Enum a) => Text -> Either Text a
193+parseBoundedTextData :: (TextShow a, Bounded a, Enum a) => Text -> Either Text a
195-- | /Case insensitive/.
195-- | /Case insensitive/.
@@ -207,11 +207,11 @@ parseBoundedTextData :: forall a. (TextShow a, Bounded a, Enum a) => Text -> Eit
207-- >>> instance FromHttpApiData MyData where parseUrlPiece = parseBoundedTextData
207-- >>> instance FromHttpApiData MyData where parseUrlPiece = parseBoundedTextData
208-- >>> parseUrlPiece "foo" :: Either Text MyData
208-- >>> parseUrlPiece "foo" :: Either Text MyData
209-- Right Foo
209-- Right Foo
210−parseBoundedTextData :: forall a. (Show a, Bounded a, Enum a) => Text -> Either Text a
210+parseBoundedTextData :: (Show a, Bounded a, Enum a) => Text -> Either Text a
212parseBoundedTextData = parseMaybeTextData (flip lookup values . T.toLower)
212parseBoundedTextData = parseMaybeTextData (flip lookup values . T.toLower)
214− values = map (showTextData &&& id) [minBound..maxBound :: a]
214+ values = map (showTextData &&& id) [minBound..maxBound]
216-- | Parse URL piece using @'Read'@ instance.
216-- | Parse URL piece using @'Read'@ instance.