Skip to content

Instantly share code, notes, and snippets.

View fetsh-edu's full-sized avatar
🌈
Working with unicorns

fetsh fetsh-edu

🌈
Working with unicorns
View GitHub Profile
@dino-
dino- / string-conversions.hs
Last active June 24, 2025 09:38
A handy illustration of converting between String, Text and ByteString in Haskell
#! /usr/bin/env stack
-- stack --resolver lts-18.8 script
{-# LANGUAGE OverloadedStrings #-}
{-
This is a handy illustration of converting between five of the commonly-used
string types in Haskell (String, ByteString, lazy ByteString, Text and lazy
Text).