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 TemplateHaskell #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE ViewPatterns #-} | |
import Diagrams.Prelude | |
import Diagrams.Backend.PGF.CmdLine | |
import Control.Monad (forM_) | |
import Control.Lens | |
import Data.List (sortBy, groupBy) |
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 #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
import Diagrams.Prelude | |
newtype M = M { unM :: Last (P2 Double) } | |
type instance V M = V2 | |
type instance N M = Double |
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 FlexibleContexts #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
import Data.Pool | |
import Control.Concurrent | |
import Control.Concurrent.Async | |
import Data.Monoid | |
import Data.Time.Clock |
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 TemplateHaskell #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
import Diagrams.Prelude | |
import Diagrams.Backend.PGF.CmdLine | |
import Control.Lens | |
import Data.List (sortBy, groupBy) | |
import Data.Ord (comparing) | |
import Data.Default.Class | |
import Data.Maybe (isJust, listToMaybe) |
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 NoMonomorphismRestriction #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
import Diagrams.Prelude hiding (radius) | |
import Diagrams.Backend.PGF.CmdLine | |
import Data.List | |
--f x | x < -1 = x * sin x | |
-- | x < 0 = 5 * x |
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 NoMonomorphismRestriction #-} | |
import Development.Shake | |
import Development.Shake.Command | |
import Development.Shake.FilePath | |
import Development.Shake.Util | |
import Control.Monad (forM_) | |
base = "IFL2016" | |
name = "ryates-" ++ base |
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 NoMonomorphismRestriction #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TupleSections #-} | |
{-# LANGUAGE ViewPatterns #-} | |
{-# LANGUAGE BangPatterns #-} | |
import Control.Monad | |
import Control.Monad.Random |
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
import Control.Monad | |
import Diagrams.Coordinates | |
import Diagrams.BoundingBox | |
-- import Diagrams.Backend.Postscript.CmdLine | |
-- import Diagrams.Backend.SVG.CmdLine | |
import Diagrams.Backend.Rasterific.CmdLine | |
import Diagrams.Backend.CmdLine | |
import Data.Default.Class |
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 NoMonomorphismRestriction, ViewPatterns #-} | |
import Diagrams.Prelude | |
import Diagrams.Backend.Postscript.CmdLine | |
import Diagrams.Solve | |
import Diagrams.TwoD.Curvature | |
import Data.Monoid.PosInf | |
import qualified Debug.Trace as T |
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 TypeFamilies | |
, MultiParamTypeClasses | |
, FlexibleInstances | |
#-} | |
module RoundedPaths | |
( offsetPath | |
, fromFixed | |
-- , roundedCornerPath | |
) where | |