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.Distributive | |
import Data.Foldable | |
import Data.Functor.Rep | |
import Data.Machine.Moore | |
import Control.Comonad.Cofree |
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 LensStore where | |
import Control.Comonad | |
import Control.Comonad.Store | |
type Coalg s a = s -> Store a s | |
_1 :: (a, b) -> Store a (a, b) | |
_1 (a, b) = store set get | |
where |
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 DeriveFoldable #-} | |
{-# LANGUAGE DeriveTraversable #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE RecordWildCards #-} | |
module FingerTrees where | |
import Control.Lens hiding (Empty, (<|), (|>), deep) | |
import Data.Foldable (fold) |
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 BlockArguments #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
-- | Extract the descriptions from a SpecWith | |
module SpecExtract where | |
-------------------------------------------------------------------------------- | |
import Test.Hspec | |
import Test.QuickCheck | |
import Control.Exception (evaluate) |
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 PatternSynonyms #-} | |
{-# LANGUAGE TypeFamilyDependencies #-} | |
module TreesThatGrow where | |
import Data.Void | |
import Data.Kind | |
import Data.Profunctor | |
------------ |
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 DeriveFunctor #-} | |
{-# LANGUAGE DeriveFoldable #-} | |
{-# LANGUAGE DeriveTraversable #-} | |
module FreerMonadFx where | |
import Data.Bifunctor (first) | |
import Data.Functor.Sum | |
import Data.Functor.Coyoneda | |
import Control.Monad | |
import Control.Monad.Free |
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 RecordWildCards #-} | |
{-# LANGUAGE TupleSections #-} | |
{-# LANGUAGE ViewPatterns #-} | |
-- | | |
module NestHydration where | |
import Control.Lens | |
import Data.Map (Map) | |
import Data.Map.Strict qualified as Map |
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 MagicHash #-} | |
{-# LANGUAGE UnboxedTuples #-} | |
-- | | |
module RealWorld where | |
-------------------------------------------------------------------------------- | |
import GHC.Prim | |
import GHC.Types | |
import GHC.ST |
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 DeriveFunctor #-} | |
{-# LANGUAGE DeriveFoldable #-} | |
{-# LANGUAGE DeriveTraversable #-} | |
module FreeMonadFx where | |
import Data.Functor.Sum | |
import Control.Monad | |
import Control.Monad.Except | |
import Control.Monad.Free | |
import Control.Monad.State |
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 RecordWildCards #-} | |
{-# LANGUAGE BlockArguments #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
module RecursionSchemes where | |
-------------------------------------------------------------------------------- | |
import Data.Smash | |
import Data.Function ((&)) | |
import Data.Bifunctor |
NewerOlder