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

Soft-hang isn't used if one thing doesn't fit #4955

Open
pchiusano opened this issue May 15, 2024 · 0 comments
Open

Soft-hang isn't used if one thing doesn't fit #4955

pchiusano opened this issue May 15, 2024 · 0 comments

Comments

@pchiusano
Copy link
Member

foo : '{IO, Exception} ()
foo = do
  printLine "hello there this is a pretty long string that doesn't fit"
  printLine "world"
  x = 1 + 1
  ()

d = {{ 
  
I've got some text here.

@source{foo} 

And now moar text. 

}}

Then display d in UCM.

It prints as:

  I've got some text here.
  
      foo : '{IO, Exception} ()
      foo =
        do
          use Nat +
          printLine
            "hello there this is a pretty long string that doesn't fit"
          printLine "world"
          x = 1 + 1
          ()
  
  And now moar text.

If all the things inside the do fit without breaking, then it does the soft hang:

excited-moonrat/main> display d

  I've got some text here.
  
      foo : '{IO, Exception} ()
      foo = do
        use Nat +
        printLine "hello there"
        printLine "world"
        x = 1 + 1
        ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant