Quantifier | Dependency | Relevance | Visibility | Matchability |
---|---|---|---|---|
∀ (a :: τ ). ... | dep. | irrel. | inv. (unification) | unmatchable |
∀ (a :: τ ) → ... | dep. | irrel. | vis. | unmatchable |
Π (a :: τ ). ... | dep. | rel. | inv. (unification) | unmatchable |
Π (a :: τ ) → ... | dep. | rel. | vis. | unmatchable |
τ ⇒ ... | non-dep. | rel. | inv. (solving) | unmatchable |
τ → ... | non-dep. | rel. | vis. | unmatchable |
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 BangPatterns #-} | |
import Prelude hiding (lookup) | |
import Data.Primitive | |
main :: IO () | |
main = do | |
print $ lookup [17,15,6,999] | |
data Tree a = Tree (Tree a) a (Tree a) |
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 PolyKinds #-} | |
{-# language TypeOperators #-} | |
{-# language LambdaCase #-} | |
{-# language BangPatterns #-} | |
{-# language KindSignatures #-} | |
{-# language DataKinds #-} | |
{-# language GADTs #-} | |
{-# language RankNTypes #-} | |
{-# language TypeFamilies #-} | |
{-# language TypeFamilyDependencies #-} |
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
instance YesodPersist App where | |
type YesodPersistBackend App = SqlBackend | |
runDB action = do | |
master <- getYesod | |
runSqlPool (hackTheReader action) $ appConnPool master | |
newtype BenchmarkResults = BenchmarkResults [(Text,TimeSpec)] | |
deriving Typeable | |
type TypeMap = HashMap TypeRep Dynamic |
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 PolyKinds #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
import GHC.TypeNats | |
import Data.Kind (Type) | |
main :: IO () |
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 PolyKinds #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE MagicHash #-} | |
{-# LANGUAGE TypeInType #-} | |
{-# LANGUAGE GADTs #-} |
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 PolyKinds #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE MagicHash #-} | |
{-# LANGUAGE TypeInType #-} | |
{-# LANGUAGE GADTs #-} |
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 #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE AllowAmbiguousTypes #-} |
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 BangPatterns #-} | |
{-# LANGUAGE MagicHash #-} | |
{-# OPTIONS_GHC -O2 #-} | |
import Control.Monad | |
import Data.Primitive | |
import Control.Monad.ST | |
import Criterion.Main |
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 RankNTypes #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
import qualified Data.Matrix as M | |
import qualified Text.Blaze.Html5 as H | |
import Text.Blaze.Html (Html,toHtml) | |
import Text.Blaze.Renderer.Pretty (renderMarkup) | |
main :: IO () | |
main = putStrLn (renderMarkup (matrixToHtml myMatrix)) |