AcceptedRRTypes.

beta
Philippe Pittoli 2024-02-01 16:20:55 +01:00
parent 1171703b62
commit 38bbc36a88
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
-- | The application accepts to add a few new entry types in a DNS zone.
-- | Each resource record has a specific form, with dedicated inputs and
-- | dedicated validation.
module App.AcceptedRRTypes where
import Prelude
import Data.Generic.Rep (class Generic)
import Data.Show.Generic (genericShow)
data AcceptedRRTypes
= A
| AAAA
| TXT
| CNAME
| NS
| MX
| SRV
derive instance genericMyADT :: Generic AcceptedRRTypes _
instance showMyADT :: Show AcceptedRRTypes where
show = genericShow