Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Debug.Trace.Linear #174

Merged
merged 1 commit into from
Sep 7, 2020
Merged

Implement Debug.Trace.Linear #174

merged 1 commit into from
Sep 7, 2020

Conversation

utdemir
Copy link
Contributor

@utdemir utdemir commented Sep 7, 2020

Closes #171.

This module implements a linear version of Debug.Trace.

It is implemented as a thin wrapper, it mostly uses Unsafe.Linear.toLinear to coerce the non-linear functions.

It uses linear arrows wherever possible, however we can't do that some places because we do not have a linear version of 'Show'. It also translates functions using Prelude.IO and Prelude.Applicative to use the linear IO and the linear data applicative respectively.

I also copied over one-line summaries of the functions from the original module, but decided against copying over the whole documentation; just because it felt like that it too much duplication. Let me know if prefer having the whole documentation, and I can copy the rest over.

@utdemir utdemir force-pushed the ud/implement-debug-trace branch from 4146bd0 to f252d22 Compare September 7, 2020 04:33
@utdemir utdemir merged commit 328e1d8 into master Sep 7, 2020
@utdemir utdemir deleted the ud/implement-debug-trace branch September 7, 2020 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop a linear Debug.Trace
2 participants