This file contains 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
{ | |
"keymap": [ | |
{ | |
"keyCode": 30, | |
"label": "1", | |
"extraLabel": "!" | |
}, | |
{ | |
"keyCode": 31, | |
"label": "2", |
This file contains 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
{ | |
"keymap": [ | |
{ | |
"keyCode": 2079, | |
"label": "@" | |
}, | |
{ | |
"keyCode": 2078, | |
"label": "!" | |
}, |
This file contains 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 TypeOperators #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE PolyKinds #-} | |
import Data.Kind (Constraint) | |
type family All (c :: k -> Constraint) ts :: Constraint where All c '[] = (); All c (t:ts) = (c t, All c ts) |
This file contains 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 KindSignatures #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverloadedLabels #-} | |
{-# LANGUAGE BlockArguments #-} | |
{-# LANGUAGE UnicodeSyntax #-} |
This file contains 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
type _ num = | |
| Zero : zero num | |
| Succ : ('a num) -> 'a plus num | |
and _ plus = Plus : 'a num -> 'a plus | |
and zero = [ ] | |
;; | |
type _ even = | |
| Even_0 : zero num even | |
| Even_S : 'a num odd -> 'a plus num even | |
and _ odd = |
This file contains 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
let | |
overlays = [ | |
(self: super: with self; { | |
coq = coq_8_10; | |
coq_8_10 = (super.coq_8_10.override { buildIde = false; }); | |
coqPackages = coqPackages_8_10; | |
coqPackages_8_10 = (super.coqPackages_8_10.overrideScope' (self: super: { | |
inherit coq; | |
})); | |
}) |
This file contains 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
macos-ld-fix = stdenv.mkDerivation { | |
name = "macos-ld-fix"; | |
src = null; | |
unpackPhase = "true"; | |
dontBuild = true; | |
installPhase = '' | |
mkdir -p $out/opt/local/lib | |
''; | |
}; |
This file contains 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 type M = sig | |
module type S | |
module S : S | |
end | |
;; module type M = sig module type S module S : S end |
This file contains 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
(self: super: | |
let | |
stdenv = let stdenv = super.overrideCC super.stdenv super.gcc8; in | |
stdenv.override { cc = super.stdenv.cc; }; | |
in { | |
inherit stdenv; | |
}) | |
# stdenv = gcc8Stdenv.override { | |
# cc = gcc8Stdenv.override { | |
# inherit (self) libc; |