Skip to content

Instantly share code, notes, and snippets.

View cblp's full-sized avatar

Yuriy Syrovetskiy cblp

  • Montenegro
View GitHub Profile
@cblp
cblp / Main.hs
Created July 26, 2022 11:58 — forked from Lev135/Main.hs
Debugging megaparsec transofrmer using `MonadParsecDbg` class
{-# 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
@cblp
cblp / error
Last active October 23, 2020 11:17 — forked from YuraKostin/error
Will Kurt. Lesson 10
robots.hs:47:36: error:
• Couldn't match type ‘[Char]’
with ‘((a1, b1, [Char]) -> t1) -> t1’
Expected type: ((a1, b1, [Char]) -> ((a1, b1, [Char]) -> t1) -> t1)
-> ((((a1, b1, [Char]) -> t1) -> t1, b1,
((a1, b1, [Char]) -> t1) -> t1)
-> ((a1, b1, [Char]) -> t1) -> t1)
-> [Char]
Actual type: ((((a1, b1, [Char]) -> t1) -> t1, b1,
((a1, b1, [Char]) -> t1) -> t1)