diff options
Diffstat (limited to 'mini-http-server/Network/HTTP/Server/Mini/Util.hs')
| -rw-r--r-- | mini-http-server/Network/HTTP/Server/Mini/Util.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mini-http-server/Network/HTTP/Server/Mini/Util.hs b/mini-http-server/Network/HTTP/Server/Mini/Util.hs new file mode 100644 index 0000000..c29a8e6 --- /dev/null +++ b/mini-http-server/Network/HTTP/Server/Mini/Util.hs @@ -0,0 +1,9 @@ +module Network.HTTP.Server.Mini.Util where + +import Data.Char +import Data.Word + + +{-# INLINE ord8 #-} +ord8 :: Char -> Word8 +ord8 = fromIntegral . ord |
