profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/mstksg/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Justin Le mstksg @Simspace Orange, CA https://blog.jle.im jle / mstksg / Lê Anh Khoa: Computational physicist & Haskeller, PhD

mstksg/auto 170

Haskell DSL and platform providing denotational, compositional api for discrete-step, locally stateful, interactive programs, games & automations. http://hackage.haskell.org/package/auto

mstksg/backprop 157

Heterogeneous automatic differentiation ("backpropagation") in Haskell

mstksg/advent-of-code-2020 85

🎅🌟❄️☃️🎄🎁

mstksg/advent-of-code-2018 84

Advent of Code 2018 Solutions (Spoilers!)

mstksg/advent-of-code-2019 64

Advent of Code 2019 Solutions (Spoilers!)

mstksg/advent-of-code-2017 49

Advent of Code 2017 (Warning: Spoilers)

mstksg/backprop-learn 30

Combinators and types for easily building trainable neural networks using the backprop library

mstksg/auto-examples 18

Example projects using the auto library.

mstksg/advent-of-code-api 11

Haskell bindings to Advent of Code REST API

created tagmstksg/functor-combinators

tagv0.4.0.0

Combine and enhance Functors

created time in 14 days

push eventmstksg/functor-combinators

Justin Le

commit sha a50cc17880acb21755dac82a1d95ea8c9665531e

Update gh-pages at Fri Sep 3 22:32:40 PDT 2021

view details

push time in 15 days

push eventmstksg/functor-combinators

Justin Le

commit sha 42111d387cd0f21f7c8b5fe9cfc21a9338c210b8

changelog and extra cleanup/moving around functions

view details

push time in 15 days

push eventmstksg/functor-combinators

Justin Le

commit sha 3e1ab9fc4c4fe756ba05d348cd9ba0342201c611

more instances and module rearrnagement, docs

view details

push time in 16 days

issue closedmstksg/functor-combinators

`HTraversable` in test suite?

What's the reason for HTraversable only being in the test suite? It seems like it could be in the library itself, or would that be unidiomatic for some reason?

closed time in 17 days

jonascarpay

issue commentmstksg/functor-combinators

`HTraversable` in test suite?

sorry for the late reply, but as of 3.6.0 it is indeed exported in the library :)

jonascarpay

comment created time in 17 days

push eventmstksg/functor-combinators

Justin Le

commit sha b452eb11e1120eb0d00d9a4389cfa929a7c37c74

inplicative, internative, and rearrange argument orders

view details

push time in 17 days

push eventmstksg/typescript-json

Justin Le

commit sha b7628f22ba3ee34578a89faaf34cd295153efc16

collection haddocks

view details

push time in 19 days

push eventmstksg/typescript-json

Justin Le

commit sha d52f6793c56abcd76a2cd0f647db393e3a1fbaf9

docs for Primitive

view details

push time in 19 days

push eventmstksg/typescript-json

Justin Le

commit sha 1ea31db89d88e4fab40991958d40314bc2cdc494

Update gh-pages at Thu Aug 26 22:00:02 PDT 2021

view details

push time in 23 days

push eventmstksg/typescript-json

Justin Le

commit sha 4ac3651f0bc2ff370a71a2fb64c306a7d742c8fe

delete cabal file

view details

push time in 23 days

push eventmstksg/typescript-json

Justin Le

commit sha 4e51063b321ec2a7db3c587279f39c725ff52af3

separate out modules for construction

view details

push time in 23 days

push eventmstksg/typescript-json

Justin Le

commit sha 3b81014efef732cdf1742478acbba224cfcf6654

commit before moving around stuff

view details

push time in 23 days

create barnchmstksg/typescript-json

branch : gh-pages

created branch time in 23 days

created tagmstksg/nonempty-containers

tagv0.3.4.3

Efficient non-empty variants of containers data types, with full API

created time in 24 days

push eventmstksg/nonempty-containers

Justin Le

commit sha ccc4283f48592efe47b41d2f44330cbadfa73e4d

v0.3.4.3 fix functions on singleton containers

view details

push time in 24 days

pull request commentmstksg/nonempty-containers

fix NESeq.intersperse

ah heh, funny story, i fixed the tests to properly test singleton containers, and it revealed that deleteMax was also broken for everything :) very helpful report!

eddiemundo

comment created time in 24 days

push eventmstksg/nonempty-containers

Justin Le

commit sha 1d68ab96e2ba76a4eafd351256970f2b498714cf

remove generated files

view details

push time in 24 days

push eventmstksg/nonempty-containers

Jon Shen

commit sha 90ad8f20e1dfeb164766825d8744e8cafea537a6

fix NESeq.intersperse

view details

Jon Shen

commit sha 9ff78e7bf5ef6ff42c2d9a1baa7cce97d75f0231

add project files so we can work with haskell.nix

view details

Justin Le

commit sha d849b5c831ca0de9dfabfb432ffd6f81573a75a0

Merge pull request #9 from eddiemundo/fix-neseq-intersperse fix NESeq.intersperse

view details

push time in 24 days

PR merged mstksg/nonempty-containers

fix NESeq.intersperse

Previously

(Seq.intersperse "," (Seq.singleton "a")) == (NESeq.toSeq (NESeq.intersperse "," (NESeq.singleton ("a" :: String))))
> False

which I don't think is right since it violates

intersperse a (singleton x) = singleton x

This fix just checks if the NESeq has more than 1 element or not and does nothing if there is 1 element.

I don't know how to make sure the property test generates a singleton NESeq. I'm actually kinda surprised that the generator didn't try that.

+188 -1

1 comment

4 changed files

eddiemundo

pr closed time in 24 days

pull request commentmstksg/nonempty-containers

fix NESeq.intersperse

LGTM! thanks for the catch, i'm surprised the tests never caught it either :O

eddiemundo

comment created time in 24 days

issue closedmstksg/nonempty-containers

Error compiling with GHC 9.0

When I try and build with GHC 9.0, I get an error like this:

[ 1 of 12] Compiling Data.IntMap.NonEmpty.Internal ( src/Data/IntMap/NonEmpty/Internal.hs, dist/build/Data/IntMap/NonEmpty/Internal.o, dist/build/Data/IntMap/NonEmpty/Internal.dyn_o )

src/Data/IntMap/NonEmpty/Internal.hs:184:20: error:
    • Couldn't match type: c (t0 a)
                     with: forall d. Data d => c (t d)
      Expected: (forall d. Data d => c (t d)) -> Maybe (c (NEIntMap a))
        Actual: c (t0 a) -> Maybe (c (NEIntMap a))
    • In the expression: gcast1
      In an equation for ‘dataCast1’: dataCast1 = gcast1
      In the instance declaration for ‘Data (NEIntMap a)’
    • Relevant bindings include
        dataCast1 :: (forall d. Data d => c (t d))
                     -> Maybe (c (NEIntMap a))
          (bound at src/Data/IntMap/NonEmpty/Internal.hs:184:3)
    |
184 |   dataCast1      = gcast1
    |                    ^^^^^^

closed time in 24 days

kozross

created tagmstksg/nonempty-containers

tagv0.3.4.2

Efficient non-empty variants of containers data types, with full API

created time in 24 days

push eventmstksg/nonempty-containers

Justin Le

commit sha 68d38867a9a8ade4732986c5947b3cbba2527515

v0.3.4.2 ghc 9 compatibility

view details

push time in 24 days

push eventmstksg/nonempty-containers

Andre Marianiello

commit sha 51137048acd716a3dcbb5f97fc714c89f9d8a91d

Fix compile errors caused byGHC 9 subsumption change

view details

Andre Marianiello

commit sha 4fbb03b6e315f6c09508483dca55e87c3d738a5f

Stop using deprecated Option type with newer GHC versions

view details

Justin Le

commit sha b1360c5a0c2ad2e73233bff7ee37b3084880b450

Merge pull request #11 from andremarianiello/ghc-9 Support building with Stackage nightly/GHC 9

view details

push time in 24 days

PR merged mstksg/nonempty-containers

Support building with Stackage nightly/GHC 9

Looks like the "simplified subsumption" changes in GHC 9 broke the Data instances in this package. They weren't broken in containers, so I fixed them by eta expanding to match. I also added CPP gates for code using Option which is deprecated. This branch compiled with no errors and no warnings for me using lts-11 (pre-monoid semigroup fix), lts-13, lts-18, and nightly.

+47 -4

3 comments

4 changed files

andremarianiello

pr closed time in 24 days

pull request commentmstksg/nonempty-containers

Support building with Stackage nightly/GHC 9

hi! thanks for this! my github notifications have been flooded for a while now and this must have gotten lost in them. thanks for the patience, LGTM -- appreciate it a lot!

andremarianiello

comment created time in 24 days

push eventmstksg/cv-static

Justin Le

commit sha 5c73cab710b3dd4b192d2f2e6a8e813668e6767f

Update gh-pages at Wed Jul 7 11:17:59 PDT 2021

view details

push time in 2 months

created tagmstksg/cv-static

tagv1.9.1

Source for static CV

created time in 2 months

push eventmstksg/cv-static

Justin Le

commit sha 65f3d314af16113c1b2c147343da34adb2372744

whoopsies wrong year

view details

push time in 2 months