Skip to content

Instantly share code, notes, and snippets.

View deepfire-pusher's full-sized avatar

Kosyrev Serge deepfire-pusher

View GitHub Profile
@deepfire-pusher
deepfire-pusher / hs-typeable-hlist.hs
Last active March 14, 2020 16:13
Thoroughly constrained type level list
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE TypeOperators #-}
import Data.Typeable
import Data.Kind
import Data.SOP.Constraint
import Generics.SOP
-- Machinery (wish it could be just NP).
@deepfire-pusher
deepfire-pusher / exhibits.hs
Created November 9, 2019 16:37
Focus lossage with networkHold in reflex-vty
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -threaded #-}
import Data.Functor ((<&>))
import Control.Monad (join)
import Control.Monad.IO.Class