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 ApplicativeParser | |
// Credits go to the outstanding Brent Yorgey CIS 194 course found here: https://www.seas.upenn.edu/~cis194/spring13/lectures.html | |
// The following is a simlified version of homework/assignments for week 10 and 11. | |
// Extremely simplified (aplicative) parser combinator small thing (i.e. snippets and/or gist) | |
// ---------------------------------------------------------------------------------- | |
// * The primitive parsers are all made based of single character parsers | |
// * Style A/B feels right working with this kind of code, and besides Applicative, one need also consider | |
// the Alternative API's (choice <|> operator, end empty Parser). Combinators like zeroOrMore, oneOrMore needs |
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
$ cat /home/maxfire/.stack/programs/x86_64-linux/ghc-8.6.5.temp/ghc-8.6.5/config.log | |
PATH: /home/maxfire/.cabal/bin | |
PATH: /opt/cabal/bin | |
PATH: /opt/ghc/bin | |
PATH: /home/maxfire/bin | |
PATH: /home/maxfire/.cabal/bin | |
PATH: /opt/cabal/bin | |
PATH: /opt/ghc/bin | |
PATH: /home/maxfire/bin | |
PATH: /usr/local/sbin |
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
$ cabal install hoogle | |
Resolving dependencies... | |
Build profile: -w ghc-8.6.5 -O1 | |
In order, the following will be built (use -v for more details): | |
- appar-0.1.8 (lib:appar) (requires download & build) | |
- auto-update-0.1.6 (lib) (requires download & build) | |
- basement-0.0.11 (lib) (requires download & build) | |
- blaze-builder-0.4.1.0 (lib) (requires download & build) | |
- bsb-http-chunked-0.0.0.4 (lib) (requires download & build) | |
- byteorder-1.0.4 (lib:byteorder) (requires download & build) |
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
Running HIE(hie) | |
Version 1.2 x86_64 ghc-8.6.5 | |
To run as a LSP server on stdio, provide the '--lsp' argument | |
Current directory:/Users/maxfire/Projects/haskell/fp-course | |
args:["--debug"] | |
Looking for project config cradle... | |
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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
const platform = process.platform; | |
const chromeItem = { | |
description: "Windows, Mac, Linux", | |
detail: "A fast, secure, and free web browser built for the modern web", | |
label: "Google Chrome", | |
standardName: platform === 'win32' | |
? 'chrome' | |
: (platform === 'darwin' |