Coder Social home page Coder Social logo

Comments (6)

neongreen avatar neongreen commented on June 10, 2024

Seems to be caused by this bug. I'm investigating.

from charsetdetect-ae.

neongreen avatar neongreen commented on June 10, 2024

@Fuuzetsu: okay, I don't know how to fix it. Whenever GHC tries to compile a module with TH, it tries to load charsetdetect, which then fails due to the static linking problems. GHC will try to load charsetdetect even if the module structure is like this:

{-# LANGUAGE TemplateHaskell #-}

module A where

import B (blah)

<something which uses TH>
module B where

import Codec.Text.Detect

blah = ... detectEncoding ...

which precludes moving writeFile, etc. into a separate module inside yi-rope, or moving them from yi-rope into yi.

I asked on SO, but I doubt there'll be a solution.

from charsetdetect-ae.

Fuuzetsu avatar Fuuzetsu commented on June 10, 2024

I have bumped the Trac ticket mentioned earlier but I don't have very high hopes.

Do you know if any other libraries on Hackage provide similar functionality to this?

from charsetdetect-ae.

neongreen avatar neongreen commented on June 10, 2024

@Fuuzetsu:

Do you know if any other libraries on Hackage provide similar functionality to this?

Not to my knowledge (I've just finished checking all libraries Hackage has to offer which mention “charset” or “encoding”).

from charsetdetect-ae.

Fuuzetsu avatar Fuuzetsu commented on June 10, 2024

OK, we're going to employ CPP to bypass detection on 7.6.3. I don't know whether this should be WONTFIX or what.

from charsetdetect-ae.

neongreen avatar neongreen commented on June 10, 2024

Fixed thanks to this answer! I've uploaded a new version (1.0.1) on Hackage.

from charsetdetect-ae.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.