Skip to content

Commit 547a06a

Browse files
authored
[ new ] module Data.Sign.Show (#2627)
1 parent cb04733 commit 547a06a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ New modules
103103

104104
* `Data.List.Base.{sum|product}` and their properties have been lifted out into `Data.Nat.ListAction` and `Data.Nat.ListAction.Properties`.
105105

106+
* `Data.Sign.Show` to show a sign
107+
106108
Additions to existing modules
107109
-----------------------------
108110

src/Data/Sign/Show.agda

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
------------------------------------------------------------------------
2+
-- The Agda standard library
3+
--
4+
-- Showing signs
5+
------------------------------------------------------------------------
6+
7+
{-# OPTIONS --cubical-compatible --safe #-}
8+
9+
module Data.Sign.Show where
10+
11+
open import Data.Sign.Base using (Sign; +; -)
12+
open import Data.String.Base using (String)
13+
14+
show : Sign String
15+
show + = "+"
16+
show - = "-"

0 commit comments

Comments
 (0)