king: textAsTa -> textAsT

This commit is contained in:
ryjm 2021-03-02 14:19:48 -05:00
parent 5f1418973d
commit f9a5666074
2 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ kingSubsite who scry stat func = do
=> Text
-> RIO e (Maybe Bool)
scryAuth cookie =
scryNow scry "ex" "" ["authenticated", "cookie", textAsTa cookie]
scryNow scry "ex" "" ["authenticated", "cookie", textAsT cookie]
fourOhFourSubsite :: Ship -> KingSubsite
fourOhFourSubsite who = KS $ \req respond ->

View File

@ -13,7 +13,7 @@ module Urbit.Noun.Conversions
, Path(..), EvilPath(..), Ship(..)
, Lenient(..), pathToFilePath, filePathToPath
, showUD, tshowUD
, textAsTa
, textAsT
) where
import ClassyPrelude hiding (hash)
@ -556,8 +556,8 @@ instance FromNoun Knot where
else fail ("Non-ASCII chars in knot: " <> unpack txt)
-- equivalent of (cury scot %t)
textAsTa :: Text -> Text
textAsTa = ("~~" <>) . concatMap \case
textAsT :: Text -> Text
textAsT = ("~~" <>) . concatMap \case
' ' -> "."
'.' -> "~."
'~' -> "~~"