From: PHO Date: Fri, 13 Jan 2012 00:53:25 +0000 (+0900) Subject: doc comments X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=ceb6901059c21991562e5ad4ffe3d6558d44309e;p=Lucu.git doc comments Ditz-issue: c80e79a2585ac20cc5ed677d70b6983a2842a81d --- diff --git a/Data/URI/Internal/Scheme.hs b/Data/URI/Internal/Scheme.hs index 7b8fd52..ebef877 100644 --- a/Data/URI/Internal/Scheme.hs +++ b/Data/URI/Internal/Scheme.hs @@ -64,14 +64,17 @@ instance Default (Parser Scheme) where {-# INLINE fromBS #-} fromBS = Scheme ∘ A.toCIAscii ∘ A.unsafeFromByteString +-- |Extract a 'CIAscii' with all letters lowercased. instance ConvertSuccess Scheme CIAscii where {-# INLINE convertSuccess #-} convertSuccess (Scheme s) = foldCase s +-- |Create an 'AsciiBuilder' with all letters lowercased. instance ConvertSuccess Scheme AsciiBuilder where {-# INLINE convertSuccess #-} convertSuccess = A.toAsciiBuilder ∘ A.fromCIAscii ∘ cs +-- |Try to parse a 'Scheme' from 'CIAscii'. instance ConvertAttempt CIAscii Scheme where {-# INLINE convertAttempt #-} convertAttempt = parseAttempt' def ∘ A.fromCIAscii