ghc-justdoit: A magic typeclass that just does it

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

This plugin allows you to write

{-# OPTIONS_GHC -fplugin GHC.JustDoIt.Plugin #-}
module Test where

import GHC.JustDoIt

foo :: ((a -> r) -> r) -> (a -> ((b -> r) -> r)) -> ((b -> r) -> r)
foo = (…)

without having to write the actual implementation of foo.

See examples/Demo.hs for a few examples of what this plugin can do for you.


[Skip to ReadMe]

Properties

Versions0.1, 0.1, 0.1.0.1
Change logChangeLog.md
Dependenciesbase (==4.11.*), ghc (>=8.5), hashable [details]
LicenseMIT
Copyright2018 Joachim Breitner
AuthorJoachim Breitner
Maintainermail@joachim-breitner.de
CategoryLanguage
Home pagehttps://github.com/nomeata/ghc-justdoit
Source repositoryhead: git clone git://github.com/nomeata/ghc-justdoit.git
UploadedFri Feb 2 20:13:11 UTC 2018 by JoachimBreitner

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for ghc-justdoit-0.1

[back to package description]

ghc-justdoit: a GHC plugin to write the code for you

This is a prototype of a code synthesis plugin for GHC, which uses LJT proof search to instantiate a type.

Synopsis

{-# OPTIONS_GHC -fplugin=GHC.JustDoIt.Plugin #-}
module Test where

import GHC.JustDoIt

foo :: ((a -> r) -> r) -> (a -> ((b -> r) -> r)) -> ((b -> r) -> r)
foo = (…)

Missing bits

If someone wants to pick it up from here, that’d be great!

Related work

Contact

Please reports bugs and missing features at the GitHub bugtracker. This is also where you can find the source code.

bSpokeLight was written by Joachim Breitner and is licensed under a permissive MIT license.