Skip to content

Instantly share code, notes, and snippets.

View Luis-omega's full-sized avatar

Luis Alberto Díaz Díaz Luis-omega

  • Mlabs
  • México
View GitHub Profile
@dino-
dino- / string-conversions.hs
Last active May 26, 2024 02:17
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).