Category: haskell

  • Overheard (6)

    A: You must make an animal sacrifice before every attempt to install new cabal packages B: We could light some incense at the very least

  • Overheard (5)

    A: fold is the most difficult function B: … why? A: ARE YOU FUCKING WITH ME??

  • Overheard (4)

    ♫ Functors flowing out ♫ ♫ Like endless rain into a paper cup ♫ ♫ They slither wildly as they slip away ♫ ♫ Across the uniplate ♫

  • I’ve managed to compile GHC-7.8.3 on an Nvidia Tegra (Jetson K1) and Adapteva Parallella-16!

    I’ve managed to compile GHC-7.8.3 on an Nvidia Tegra (Jetson K1) and Adapteva Parallella-16!

    It took a while, but I’ve finally managed to compile and run GHC-7.8.3 on an Nvidia Jetson K1 board. The Jetson K1 board has a 32-bit Nvidia Tegra processor (essentially a quad-core ARM Cortex A15), and an integrated 192 core Nvidia GPU. Mine came with a standard Ubuntu 14.04 distribution and nothing more really. After…

  • Rot13 implementation in Haskell

    Rot13 is a simple Caeser-cypher where letters are replaced by shifting them by 13 places. > import Data.Maybe (fromMaybe) > rot13 :: String -> String > rot13 s = map rotchar s > where we’ll first look in the lowercase letters > rotchar c = case (lookup c $ transp lc) of > Just x…