Skip to content

Commit

Permalink
[ ux ] Don't export name prf, as it's widely used and warned about (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden authored Aug 9, 2024
1 parent df6049e commit 572ba6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Text/PrettyPrint/Bernardy/Combinators.idr
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export
sep' : {opts : _} -> List (Doc opts) -> Doc opts
sep' xs = ifMultiline (hsep xs) (vsep xs)

||| Add the given document only when conditions is true
||| Add the given document only when condition is true
export
when : Bool -> Doc opts -> Doc opts
when True = id
Expand Down
2 changes: 1 addition & 1 deletion src/Text/PrettyPrint/Bernardy/Core.idr
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ record Layout where
-- natural and efficient accumulator in a left fold.
content : Lazy (SnocList String)
stats : Stats
{auto 0 prf : NonEmptySnoc content}
{auto 0 prfNonEmptyContent : NonEmptySnoc content}

layout : Lazy (Subset (SnocList String) NonEmptySnoc) -> Stats -> Layout
layout ss st = MkLayout (fst ss) st @{snd ss}
Expand Down

0 comments on commit 572ba6e

Please sign in to comment.