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
{ stdenv, fetchFromGitHub, pkgconfig, vpnc, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib } : | |
assert (openssl != null) == (gnutls == null); | |
let | |
version = "7.08"; | |
name = "openconnect_pa-${version}"; | |
in stdenv.mkDerivation { | |
inherit name; |
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
gm (middle of line) | |
% (match of next brace, bracket, comment, #define) |
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 CPP #-} | |
#define InnieOuttie IO | |
#define class module | |
#define begin where | |
#define mayo main | |
#define memo putStrLn |
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 ScopedTypeVariables #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-} | |
module Data.Dependent.Map.JSON () where | |
import Data.Aeson (ToJSON(..),FromJSON(..)) | |
import Data.Exists (Exists(..),ToJSONKeyForall(..), | |
ToJSONKeyFunctionForall(..),ToJSONForall(..),ToSing(..), |
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
http://www.eas.uccs.edu/~mwickert/ece5655/lecture_notes/ece5655_chap10.pdf |
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
# a simple service, 'mysql' | |
$ cat example.nix | |
{ pkgs, ... }: | |
{ | |
services.mysql.enable = true; | |
services.mysql.package = pkgs.mysql; | |
} | |
# build the service |
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 OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Main (main) where | |
import Colonnade (Headed) | |
import Data.ByteString (ByteString) | |
import Data.Map (Map) | |
import Data.Text (Text) | |
import Siphon (Siphon, SiphonError) |
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 #-} | |
module Rank2CatMaybes (catMaybes) where | |
import Data.Coerce (coerce) | |
import Data.Functor.Identity (Identity(Identity)) | |
import qualified Rank2 | |
liftId :: (forall x. x -> Identity x) | |
liftId = coerce |
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
owner = "chessai" | |
fullName = "chessai" | |
email = "[email protected]" | |
license = "BSD3" | |
lib = true | |
exe = false | |
test = true | |
bench = false | |
github = true | |
private = false |
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
-- | ghc foo.hs -ddump-simpl -dsuppress-all -fforce-recomp -O2 | |
[1 of 1] Compiling ParseFoo ( foo.hs, foo.o ) | |
==================== Tidy Core ==================== | |
Result size of Tidy Core | |
= {terms: 260, types: 105, coercions: 10, joins: 0/3} | |
-- RHS size: {terms: 1, types: 0, coercions: 0, joins: 0/0} | |
$trModule4 |