Skip to content

Instantly share code, notes, and snippets.

View chessai's full-sized avatar

chessai chessai

View GitHub Profile
-- Copyright (c) 2014, Ryan Trinkle
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice, this
-- list of conditions and the following disclaimer.
--
-- * Redistributions in binary form must reproduce the above copyright notice,
{ frontend ? false # Whether or not to enable the frontend
, compiler ? if frontend then "ghcjs84" else "ghc843" # compiler we are using
, closure ? false # Whether or not to use the closure compiler
, prepack ? false # Whether or not to use prepack
, gzipJS ? false # Whether or not to compress the JS
, gzipCSS ? false # Whether or not to compress the CSS
}:
with rec {
fetchNixpkgs = import ./fetchNixpkgs.nix;
{ frontend ? false # Whether or not to enable the frontend
, compiler ? if frontend then "ghcjs84" else "ghc843" # compiler we are using
, closure ? false # Whether or not to use the closure compiler
, prepack ? false # Whether or not to use prepack
, gzipJS ? false # Whether or not to compress the JS
, gzipCSS ? false # Whether or not to compress the CSS
}:
with rec {
fetchNixpkgs = import ./fetchNixpkgs.nix;
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE QuantifiedConstraints #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
diff --git a/compiler/typecheck/TcRnExports.hs b/compiler/typecheck/TcRnExports.hs
index dbe2b4b22b..1b57608a41 100644
--- a/compiler/typecheck/TcRnExports.hs
+++ b/compiler/typecheck/TcRnExports.hs
@@ -33,7 +33,7 @@ import DataCon
import PatSyn
import Maybes
import Util (capitalise)
-
+import FastString (fsLit)
uses String instead of Text
lawless AND useless typeclasses
uses things like [(String,String)] instead of Map Text Text
has hand-written typeclass instances that are strictly worse than their derived versions
no explicit import lists
no explicit export lists
Some places should use Set instead of List (e.g. Subscription)
This file has been truncated, but you can view the full file.
/nix/store/ks30q9pvvwwz9qnfv1jny85fgh6kmhxl-interface-0.2.drv
+---/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh
+---/nix/store/2ff99ggdn452nrz8fylk2r80783ap2px-gnugrep-3.1.drv
| +---/nix/store/136pix4jkygp9vz7h33gqlaghsydwvhy-grep-3.1.tar.xz.drv
| +---/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh [...]
| +---/nix/store/w3xksy5k5rywl4z27v7gi8yafb7ci2sw-bootstrap-tools.drv
| | +---/nix/store/b7irlwi2wjlx5aj1dghx4c8k3ax6m56q-busybox.drv
| | +---/nix/store/drsdq2ca1q1dj1hd0r1w2hl4s0fak1vh-bootstrap-tools.tar.xz.drv
| | +---/nix/store/pvn8nrg8aziwsc7yy8wkgxf4s9amnl3d-unpack-bootstrap-tools.sh
| +---/nix/store/w4s5n5za125y8hyqyqzi57v6hajvrwp2-bootstrap-stage4-stdenv-linux.drv
{
"/nix/store/x5byfq70l9lmvwshg0b5qa4ikc8yhdvf-jsaddle-0.9.5.0.drv": {
"outputs": {
"out": {
"path": "/nix/store/ym3x6vmfhzq675flr8qw7q2pgz1y39g9-jsaddle-0.9.5.0"
}
},
"inputSrcs": [
"/nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs",
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"
This file has been truncated, but you can view the full file.
/nix/store/1fz32rhf62znsg60np1a3qdnpnpzsw4n-interface-0.2.drv
+---/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh
+---/nix/store/2ff99ggdn452nrz8fylk2r80783ap2px-gnugrep-3.1.drv
| +---/nix/store/136pix4jkygp9vz7h33gqlaghsydwvhy-grep-3.1.tar.xz.drv
| +---/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh [...]
| +---/nix/store/w3xksy5k5rywl4z27v7gi8yafb7ci2sw-bootstrap-tools.drv
| | +---/nix/store/b7irlwi2wjlx5aj1dghx4c8k3ax6m56q-busybox.drv
| | +---/nix/store/drsdq2ca1q1dj1hd0r1w2hl4s0fak1vh-bootstrap-tools.tar.xz.drv
| | +---/nix/store/pvn8nrg8aziwsc7yy8wkgxf4s9amnl3d-unpack-bootstrap-tools.sh
| +---/nix/store/w4s5n5za125y8hyqyqzi57v6hajvrwp2-bootstrap-stage4-stdenv-linux.drv
/nix/store/jb0yfmwxcavk62rmb5f26xgh9cwjhmnx-cabal2nix-interface.drv
+---/nix/store/60101705hbqwba38kp28sqa9bykmvq68-interface
+---/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh
+---/nix/store/z7pkrfk5fmggdzyhpjzxv0bfx6mxvh75-bash-4.4-p23.drv
| +---/nix/store/20sqhza7ab7ah73bxj1ydzx7b4y0fs8f-bash44-021.drv
| +---/nix/store/29w58xpj3jhbv2bppxiyid5icfhfayp1-bash44-012.drv
| +---/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh [...]
| +---/nix/store/w3xksy5k5rywl4z27v7gi8yafb7ci2sw-bootstrap-tools.drv
| | +---/nix/store/b7irlwi2wjlx5aj1dghx4c8k3ax6m56q-busybox.drv
| | +---/nix/store/drsdq2ca1q1dj1hd0r1w2hl4s0fak1vh-bootstrap-tools.tar.xz.drv