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

  • SEARCH
  • Home
  • 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 7727287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:25:21+00:00 2026-06-01T05:25:21+00:00

I hear that Data.Text is going to replace String s in future Haskell versions.

  • 0

I hear that Data.Text is going to replace Strings in future Haskell versions. One issue I have with this is that (++) is defined for lists only. To concatenate two Texts, I need to use

text1 `mappend` text2

Which gets verbose quickly. Ideally I’d like to be able to use ++ on these Texts, but if not, what is another alternative? I could define my own infix operator, but I’d like a standard way of doing this.

  • 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-01T05:25:22+00:00Added an answer on June 1, 2026 at 5:25 am

    From GHC 7.4 (not sure which point version) there is a predefined <> operator that works the same as mappend. So you’ll be able to say

    text1 <> text2
    

    So that’s the “standard” infix operator, but it’s not available everywhere yet.

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

Sidebar

Related Questions

i hear that NTFS alternate data streams can be used to hide running executabes.
We have a Prepared Statement in Java and we hear that it is different
Assume that I have some array of data (a vector to be specific). Can
I have a special type of ostringstream that I am trying to output text
For example if I have this html: <div>this is a test < text</div> the
I have an application built with Django. Part of it relies on data that
Couch has a REST interface. This means that data-updates are exclusive to PUT calls.
This is a general question. Using an example below, suppose that I have a
My data access classes often have a method called loadDataToEntity or something similar. This
I hear that tr1::result_of gets used frequently inside of Boost... I'm wondering if there

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.