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 FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE PartialTypeSignatures #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# OPTIONS_GHC -Wall #-} | |
{-# OPTIONS_GHC -Wno-partial-type-signatures #-} |
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 ConstraintKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
-- | This module contains usage example of suggested `MonadParsecDbg` type class, | |
-- minimized, but, I hope, demonstrative | |
-- | |
-- If someone have better solution, I would like to see it | |
module Main where |
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
module LookAhead | |
( Pattern (..), | |
ConflictPatterns, | |
checkUniquePatSplit, | |
checkUniquePatSplit', | |
) | |
where | |
import Control.Monad (guard, when) | |
import Data.Bifunctor (Bifunctor (..)) |
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 ApplicativeDo #-} | |
module Main where | |
import Data.Void (Void) | |
import Text.Megaparsec (Parsec, parseTest) | |
import Text.Megaparsec.Char (char) | |
import Text.Megaparsec.Char.Lexer (decimal) | |
import UnordApp (liftApp, runUnord) |
NewerOlder