Skip to content

Commit

Permalink
Make messages printable
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Mar 7, 2024
1 parent ebf99ba commit 943ab7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/messages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import language.experimental.captureChecking

object Message:
def apply(value: Text): Message = Message(List(value))
given message: Printable[Message] = (message, termcap) => message.text

transparent inline def make[TupleType <: Tuple](inline subs: TupleType, done: List[Message]): List[Message] =
inline erasedValue[TupleType] match
Expand Down

0 comments on commit 943ab7a

Please sign in to comment.