Skip to content

Conversation

sevillaarvin
Copy link
Contributor

Point Data.Generic.Rep from the deprecated link to the new link

Also forgot to change genericShow reference from last pull request #385:

genericShow
#+begin_src purescript
import Data.Generic.Rep (class Generic)
import Data.Show.Generic (genericShow)
-- import Data.Generic.Rep.Show (genericShow)
import Effect.Console (logShow)

:paste

data MyADT
  = Some
  | Arbitrary Int
  | Contents Number String

derive instance genericMyADT :: Generic MyADT _

instance showMyADT :: Show MyADT where
  show = genericShow
  
main = logShow [Some, Arbitrary 1, Contents 2.0 "Three"]
#+end_src
</details>

#+RESULTS:
: PSCi, version 0.14.0
: Type :? for help
: 
: import Prelude
: 
: > > > > > > … … … … … … … … … … … … … > See ya!
: ()

Point `Data.Generic.Rep` from the [deprecated link](https://pursuit.purescript.org/packages/purescript-generics-rep/6.1.4/docs/Data.Generic.Rep#t:Generic) to the [new link](https://pursuit.purescript.org/packages/purescript-prelude/5.0.0/docs/Data.Generic.Rep#t:Generic)

Also forgot to change `genericShow` reference from last pull request purescript#385:

```purescript
#+begin_src purescript
import Data.Generic.Rep (class Generic)
import Data.Show.Generic (genericShow)
-- import Data.Generic.Rep.Show (genericShow)
import Effect.Console (logShow)

:paste

data MyADT
  = Some
  | Arbitrary Int
  | Contents Number String

derive instance genericMyADT :: Generic MyADT _

instance showMyADT :: Show MyADT where
  show = genericShow
  
main = logShow [Some, Arbitrary 1, Contents 2.0 "Three"]
#+end_src

#+RESULTS:
: PSCi, version 0.14.0
: Type :? for help
: 
: import Prelude
: 
: > > > > > > … … … … … … … … … … … … … > See ya!
: ()
```
Co-authored-by: milesfrain <milesfrain@users.noreply.github.com>
@JordanMartinez JordanMartinez merged commit dc6374b into purescript:master May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants