Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8642801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:52:17+00:00 2026-06-12T11:52:17+00:00

I have a Haskell record data type that looks like this: data Client =

  • 0

I have a Haskell record data type that looks like this:

data Client = Client { clientId :: Int
                     , nickname :: Text
                     , clientSink :: Maybe (WS.Sink WS.Hybi00)
                     , clientRoom :: Maybe Room
                     }

I can’t derive a Show instance from this because of WS.Sink has no Show instance.

How can I make a Show instance that excludes just the clientSink field, but prints the rest of the record fields like a normal record?

Should I just create a custom Show instance for WS.Sink?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:52:18+00:00Added an answer on June 12, 2026 at 11:52 am

    Add a Show instance for WS.Sink

    instance Show WS.Sink where show a = "Sink"
    

    or whatever dummy value you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose that I have the following record: type t = {a:int} In order to
I have a Haskell file which looks like this: longest::[Integer]->[Integer]->[Integer] max a b =
I have the following Haskell code import Data.Int import System.Environment type Coord = (Int16,
I am a Haskell newbie. I have noticed that Haskell does not support record
If I have a Haskell ADT such as: data Foo = A Int Double
How to create a list of records in haskell I have a Record data
I have a haskell program that uses Data.Set and Data.IntMap, what flags do I
I have a Haskell function that returns a monad, declared as follows: data Options
I have a haskell file test.hs. In this file I have written a function
I'm starting to learn Haskell and I've heard that many Haskell compilers have especially

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.