-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anastasios Valtinos
committed
Oct 31, 2022
1 parent
1539386
commit 6042f8e
Showing
19 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
Binary file modified
BIN
+3.27 KB
(180%)
...f Monads/dist-newstyle/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/build/JSONParser.hi
Binary file not shown.
Binary file modified
BIN
+3.17 KB
(150%)
...of Monads/dist-newstyle/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/build/JSONParser.o
Binary file not shown.
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
Binary file modified
BIN
+3.95 KB
(150%)
...style/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/build/libHSparsing-0.1.0.0-inplace.a
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...- Book of Monads/dist-newstyle/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/cache/build
Binary file not shown.
Binary file modified
BIN
+113 Bytes
(100%)
... Book of Monads/dist-newstyle/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/cache/config
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
...of Monads/dist-newstyle/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/cache/registration
Binary file not shown.
Binary file modified
BIN
+9.55 KB
(110%)
... Book of Monads/dist-newstyle/build/x86_64-windows/ghc-9.2.1/parsing-0.1.0.0/setup-config
Binary file not shown.
Binary file modified
BIN
+60 Bytes
(100%)
Haskell Excercises & Code/Alejandro - Book of Monads/dist-newstyle/cache/config
Binary file not shown.
Binary file modified
BIN
+4.8 KB
(110%)
Haskell Excercises & Code/Alejandro - Book of Monads/dist-newstyle/cache/elaborated-plan
Binary file not shown.
Binary file modified
BIN
+9.53 KB
(110%)
Haskell Excercises & Code/Alejandro - Book of Monads/dist-newstyle/cache/improved-plan
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
Haskell Excercises & Code/Alejandro - Book of Monads/dist-newstyle/cache/plan.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"cabal-version":"3.6.2.0","cabal-lib-version":"3.6.2.0","compiler-id":"ghc-9.2.1","os":"windows","arch":"x86_64","install-plan":[{"type":"pre-existing","id":"base-4.16.0.0","pkg-name":"base","pkg-version":"4.16.0.0","depends":["ghc-bignum-1.2","ghc-prim-0.8.0","rts-1.0.2"]},{"type":"pre-existing","id":"ghc-bignum-1.2","pkg-name":"ghc-bignum","pkg-version":"1.2","depends":["ghc-prim-0.8.0"]},{"type":"pre-existing","id":"ghc-prim-0.8.0","pkg-name":"ghc-prim","pkg-version":"0.8.0","depends":["rts-1.0.2"]},{"type":"configured","id":"parsing-0.1.0.0-inplace","pkg-name":"parsing","pkg-version":"0.1.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"C:\\Users\\Administrator\\Desktop\\Haskell first Principles\\haskell-deepidive\\Haskell Excercises & Code\\Alejandro - Book of Monads\\."},"dist-dir":"C:\\Users\\Administrator\\Desktop\\Haskell first Principles\\haskell-deepidive\\Haskell Excercises & Code\\Alejandro - Book of Monads\\dist-newstyle\\build\\x86_64-windows\\ghc-9.2.1\\parsing-0.1.0.0","depends":["base-4.16.0.0"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"rts-1.0.2","pkg-name":"rts","pkg-version":"1.0.2","depends":[]}]} | ||
{"cabal-version":"3.6.2.0","cabal-lib-version":"3.6.2.0","compiler-id":"ghc-9.2.1","os":"windows","arch":"x86_64","install-plan":[{"type":"pre-existing","id":"base-4.16.0.0","pkg-name":"base","pkg-version":"4.16.0.0","depends":["ghc-bignum-1.2","ghc-prim-0.8.0","rts-1.0.2"]},{"type":"pre-existing","id":"ghc-bignum-1.2","pkg-name":"ghc-bignum","pkg-version":"1.2","depends":["ghc-prim-0.8.0"]},{"type":"pre-existing","id":"ghc-prim-0.8.0","pkg-name":"ghc-prim","pkg-version":"0.8.0","depends":["rts-1.0.2"]},{"type":"pre-existing","id":"mtl-2.2.2","pkg-name":"mtl","pkg-version":"2.2.2","depends":["base-4.16.0.0","transformers-0.5.6.2"]},{"type":"configured","id":"parsing-0.1.0.0-inplace","pkg-name":"parsing","pkg-version":"0.1.0.0","flags":{},"style":"local","pkg-src":{"type":"local","path":"C:\\Users\\Administrator\\Desktop\\Haskell first Principles\\haskell-deepidive\\Haskell Excercises & Code\\Alejandro - Book of Monads\\."},"dist-dir":"C:\\Users\\Administrator\\Desktop\\Haskell first Principles\\haskell-deepidive\\Haskell Excercises & Code\\Alejandro - Book of Monads\\dist-newstyle\\build\\x86_64-windows\\ghc-9.2.1\\parsing-0.1.0.0","depends":["base-4.16.0.0","mtl-2.2.2"],"exe-depends":[],"component-name":"lib"},{"type":"pre-existing","id":"rts-1.0.2","pkg-name":"rts","pkg-version":"1.0.2","depends":[]},{"type":"pre-existing","id":"transformers-0.5.6.2","pkg-name":"transformers","pkg-version":"0.5.6.2","depends":["base-4.16.0.0"]}]} |
Binary file modified
BIN
+4.99 KB
(120%)
Haskell Excercises & Code/Alejandro - Book of Monads/dist-newstyle/cache/solver-plan
Binary file not shown.
Binary file modified
BIN
+45 Bytes
(140%)
Haskell Excercises & Code/Alejandro - Book of Monads/dist-newstyle/cache/up-to-date
Binary file not shown.
Binary file modified
BIN
+34 Bytes
(100%)
...ercises & Code/Alejandro - Book of Monads/dist-newstyle/packagedb/ghc-9.2.1/package.cache
Binary file not shown.
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
13 changes: 13 additions & 0 deletions
13
Haskell Excercises & Code/Alejandro - Book of Monads/monadic.hs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{-# LANGUAGE FlexibleContexts #-} | ||
module MonadicCode where | ||
|
||
import Control.Monad.State as CMS | ||
|
||
|
||
-- implement `ap` yourself | ||
|
||
ap :: Monad m => m (a -> b) -> m a -> m b | ||
ap mf mx = do | ||
f <- mf | ||
x <- mx | ||
return (f x) |
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
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