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 AllowAmbiguousTypes #-} | |
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE RankNTypes #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE TypeApplications #-} |
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 Talk | |
| -- Tom Harding | |
| -- | |
| -- Blog: tomharding.me | |
| -- GitHub: github.com/i-am-tom | |
| -- Twitter: twitter.com/am_i_tom | |
| -- Work: habito.com | |
| -- github.com/i-am-tom/LICK |
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 TypeInType #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| module Tree where | |
| import Data.Kind | |
| import GHC.TypeLits | |
| data 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
| module Main where | |
| import Control.Apply (lift2) | |
| import Data.Foldable (elem) | |
| import Data.Tuple (Tuple(..)) | |
| import FRP.Behavior (Behavior, animate, fixB) | |
| import FRP.Behavior.Keyboard (keys) | |
| import FRP.Event.Keyboard (Keyboard, getKeyboard) | |
| import Color.Scheme.MaterialDesign (deepPurple, lime) | |
| import Data.Maybe (Maybe(..)) |
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
| const Day = ({ get, left, right }) => { | |
| const map = f => Day ({ | |
| get: f (extract()), | |
| left, right | |
| }) | |
| const extend = f => | |
| Day ({ | |
| get: (left, right) => f (Day ({ get, left, right })), |
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 | |
| DataKinds | |
| , DeriveAnyClass | |
| , DeriveGeneric | |
| , DerivingStrategies | |
| , FlexibleContexts | |
| , FlexibleInstances | |
| , FunctionalDependencies | |
| , GeneralizedNewtypeDeriving | |
| , PolyKinds |
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 Controller.SignUp where | |
| import View.SignUp | |
| ( Input (..) | |
| , Output (..) | |
| , Message (..) | |
| , State (..) | |
| , Error (..) | |
| , view |
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 TypeOperators #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| module YassQueen where | |
| data Nil | |
| data Cons x xs | |
| type family First xs where | |
| First (Cons x xs) = 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 DataKinds #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| module Main where | |
| data Nil | |
| data Cons x xs |
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 GADTs #-} | |
| {-# LANGUAGE LambdaCase #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE TypeInType #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| module Main (test01, test02, main) where | |
| import Data.Kind |