Skip to content

Instantly share code, notes, and snippets.

View int-e's full-sized avatar

Bertram Felgenhauer int-e

View GitHub Profile
@int-e
int-e / bitgrid.hs
Last active January 24, 2024 09:34
bitgrid playground
import System.Random
import Control.Monad
import Data.List
z = False
cell ' ' = \(a, b, c, d) -> (a, b, c, d)
cell '↓' = \(a, b, _, _) -> (a, b, a, b)
cell '↑' = \(_, _, c, d) -> (c, d, c, d)
cell '→' = \(a, _, c, _) -> (a, a, c, c)
@int-e
int-e / Quine.hs
Last active November 30, 2021 21:20
quine.s2i
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE BlockArguments #-}
import Control.Monad
import Control.Monad.RWS
import Data.Monoid
import Data.List
------------------------------------------------------------------------------