This file contains 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 GADTs #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
module TargetList where | |
import Prelude hiding (length) | |
import Control.Applicative | |
This file contains 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
-- By Martijn van Steenbergen | |
-- 7 July 3022, 23h00 | |
-- GTTSE 2011, Braga, Portugal | |
module Parser where | |
import Company | |
import Control.Applicative hiding (many, (<|>)) | |
import Text.Parsec |
This file contains 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
-- Solution to https://twitter.com/xopus/status/88187651705946112 | |
module Xopus where | |
import Data.List | |
import Control.Arrow | |
-- Prints: | |
-- Sub (Mul (Num 12) (Add (Num 6) (Mul (Num 3) (Num 9)))) (Num 15) | |
-- Sub (Mul (Num 12) (Add (Num 6) (Mul (Num 9) (Num 3)))) (Num 15) | |
main :: IO () |