summaryrefslogtreecommitdiff
path: root/mini-http-server/Network/HTTP/Server/Mini/Util.hs
blob: 4c42d83072665ece4d3e91217a7dfe3fea5b6767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-|
Copyright: (c) Tom Smeding 2026
License: AGPL-3.0-or-later
-}
module Network.HTTP.Server.Mini.Util where

import Data.Char
import Data.Word


{-# INLINE ord8 #-}
ord8 :: Char -> Word8
ord8 = fromIntegral . ord