This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Data.Char | |
import Data.ByteString.Char8 hiding (all, putStrLn) | |
import System.IO | |
getStr _ 0 _ = return "" | |
getStr h n p = do | |
c <- unpack <$> hGet h 1 | |
if all p c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleInstances, FunctionalDependencies, UndecidableInstances #-} | |
-- Esoteric programming with Haskell: | |
-- http://www.cse.chalmers.se/~hallgren/Papers/hallgren.pdf | |
-- https://repl.it/repls/AquaGainsboroSquares | |
module Main where | |
import System.IO | |
u = undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleInstances, FunctionalDependencies, UndecidableInstances #-} | |
-- Esoteric programming with Haskell: | |
-- http://www.cse.chalmers.se/~hallgren/Papers/hallgren.pdf | |
-- https://repl.it/repls/AquaGainsboroSquares | |
module Fun where | |
data True | |
data False |
NewerOlder