Skip to content

jrsonline/HKT

Repository files navigation

README

HKT

I have moved various Higher Kinded Types functionality and article links here, from under strictlyswift (mostly due to my initial failure to use git properly, necessitating a re-sync)

If you want to find out what these are, please read the articles. This is very cool stuff :-)

There is a Playground under PlaygroundWapper/HKTBlogPlayground. (see note below about Building if you get an error) The playground is a companion to the articles so won't make much sense on its own.

ARTICLES

https://medium.com/@JLHLonline/superpowered-sequences-a009ccc1ae43

https://medium.com/@JLHLonline/a-world-beyond-swift-maps-f73397d4504

https://medium.com/@JLHLonline/monad-magic-d355a761e294

https://medium.com/@JLHLonline/a-monad-menagerie-15e5b96d9ca7

...and one more that's not HKT-related: https://medium.com/@JLHLonline/machine-learning-in-swift-the-matrix-5ff1c8fd5e96

Building

This has been built using XCode 10. Files may need recompiling if you are not using XCode 10, even to run the Playground. Build both HKTFramework and HKTBlogFramework. It's not necessary to run Sourcery to do the build -- in the Build Settings set RUNSOURCERY to NO to not run Sourcery.

You'll need to run Sourcery if you want to add your own types. Set RUNSOURCERY = YES. This project uses Sourcery as a Podfile. I have set up a build phase to turn the '.stencil' file into generated Swift code. The output file is placed into the Sourcery directory.

Note that the ordering of the generated sourcery.generated.swift file is key -- it needs to be placed in the Build Phases so that it compiles before any of the files using the created classes. This project already has that set up.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published