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
resolver: lts-13.23 | |
packages: | |
- '.' | |
- vendor/haskell-tree-sitter | |
- vendor/haskell-tree-sitter/languages/go | |
- vendor/haskell-tree-sitter/languages/haskell | |
- vendor/haskell-tree-sitter/languages/java | |
- vendor/haskell-tree-sitter/languages/json | |
- vendor/haskell-tree-sitter/languages/php | |
- vendor/haskell-tree-sitter/languages/python |
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 OverloadedStrings #-} | |
{-# LANGUAGE PartialTypeSignatures #-} | |
module Main where | |
import Control.Exception.Safe (MonadMask) | |
import qualified Control.Exception.Safe as Exc | |
import Control.Monad.IO.Class (MonadIO) | |
import Data.ByteString (ByteString) | |
import qualified Data.ByteString as BS |
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 ConstraintKinds #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE InstanceSigs #-} | |
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE NoMonomorphismRestriction #-} |
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
# NOTE: | |
# For details on warnings: https://downloads.haskell.org/~ghc/master/users-guide/using-warnings.html | |
# | |
# This list taken from https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3 | |
ghc-options: | |
- -fwarn-tabs # Warn on tabs (spaces are better) | |
- -Weverything # Enable all warnings with -Weverything, then | |
# disable the ones we don’t care about |
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 Main where | |
import Prelude | |
import Control.Alt ((<|>)) | |
import Control.Monad.Eff.Console (log, logShow) | |
import Data.Array (fromFoldable) | |
import Data.Bifunctor (bimap) | |
import Data.Either (fromRight) | |
import Data.Generic.Rep (class Generic) |
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 Main where | |
import Prelude | |
import Control.Monad.Eff.Console (log, logShow) | |
import Data.Array (fromFoldable) | |
import Data.Bifunctor (bimap) | |
import Data.Either (fromRight) | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) |
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 Main where | |
import Prelude | |
import Control.Monad.Eff.Console (log, logShow) | |
import Data.Array (fromFoldable) | |
import Data.Bifunctor (bimap) | |
import Data.Either (fromRight) | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) |
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 Main where | |
import Prelude | |
import Control.Monad.Eff.Console (log, logShow) | |
import Data.Array (fromFoldable) | |
import Data.Either (fromRight) | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) | |
import Data.List.NonEmpty (NonEmptyList, singleton) |
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 Main where | |
import Prelude | |
import Control.Monad.Eff.Console (log, logShow) | |
import Data.Array (fromFoldable) | |
import Data.List.NonEmpty (NonEmptyList, singleton) | |
import Data.String (null, length, toLower, toUpper) | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) |
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 Main where | |
import Prelude | |
import Control.Monad.Eff.Console (log, logShow) | |
import Data.Array (fromFoldable) | |
import Data.List.NonEmpty (NonEmptyList, singleton) | |
import Data.String (length, null, toLower, toUpper) | |
import Data.Generic.Rep (class Generic) | |
import Data.Generic.Rep.Show (genericShow) |