Skip to content

Instantly share code, notes, and snippets.

@jship
Created August 7, 2020 16:04
Show Gist options
  • Save jship/a9ae087440659c9d7aa3228a664608d7 to your computer and use it in GitHub Desktop.
Save jship/a9ae087440659c9d7aa3228a664608d7 to your computer and use it in GitHub Desktop.
This script helps ensure my writing is precise and free of today's popular shorthand
#!/usr/bin/env stack
-- stack --resolver lts-15.6 script --package text
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
import Data.Text (Text)
import Prelude
import qualified Data.Text as Text
import qualified Data.Text.IO as Text.IO
main :: IO ()
main = do
transluberneted <- do
fmap (Text.intercalate "ubernete" . Text.splitOn "8") $ Text.IO.getContents
Text.IO.putStr transluberneted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment