Skip to content

Implement Debug.Trace.Linear#174

Merged
utdemir merged 1 commit intomasterfrom
ud/implement-debug-trace
Sep 7, 2020
Merged

Implement Debug.Trace.Linear#174
utdemir merged 1 commit intomasterfrom
ud/implement-debug-trace

Conversation

@utdemir
Copy link
Copy Markdown
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