Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 04 13:47
    jneira commented #946
  • Oct 30 16:45
    juanpaucar commented #495
  • Oct 30 12:07
    Boreaso commented #979
  • Oct 30 09:32
    jneira commented #979
  • Oct 30 09:30
    jneira edited #979
  • Oct 28 01:58
    Boreaso commented #979
  • Oct 27 17:11
    jneira commented #979
  • Oct 27 17:11
    jneira commented #979
  • Oct 26 11:33
    Boreaso edited #979
  • Oct 26 11:20
    Boreaso edited #979
  • Oct 26 11:12
    Boreaso opened #979
  • Oct 16 15:52
    Boreaso commented #978
  • Oct 16 09:14
    jneira commented #978
  • Oct 16 09:13
    jneira commented #978
  • Oct 16 00:25
    Boreaso opened #978
  • Oct 15 13:06
    bobbrahms edited #977
  • Oct 15 13:05
    bobbrahms opened #977
  • Oct 03 13:55
    pierrebeaucamp commented #975
  • Oct 02 00:37
    rjperrella opened #976
  • Sep 28 21:29
    jneira commented #961
ShalokShalom
@ShalokShalom
@jneira Thanks a lot for helping me.
Javier Neira
@jneira
@ShalokShalom so you got the last message trying to install happy?
Rahul Muttineni
@rahulmutt
@argideritzalpea I can take a look this weekend and give you an update. Can you file an issue on the gradle-eta plugin regarding this so that it’s tracked?
argideritzalpea
@argideritzalpea
@rahulmutt Cool, just filed an issue. Thanks a lot
ShalokShalom
@ShalokShalom
Javier: Solved, thanks
So, new issue: http://dpaste.com/3SZMVTY
Rahul Muttineni
@rahulmutt
setup: The program 'happy' is required but it could not be found
I think you may need to install happy
Emily Pillmore
@emilypi
don't we all. if only it were that easy
jrciii
@jrciii
:laughing:
Jakob Brünker
@JakobBruenker
So, I followed the eta installation guide for nix - if I want to use the REPL, would I have to install etlas, use etlas to install eta a second time, and then use etlas repl?
Javier Neira
@jneira
i am not a nix user but you can simply download etlas and it will use the eta executable in $PATH or you can use a eta in a specific path etlas repl -w /path/to/eta
Jakob Brünker
@JakobBruenker
okay, thanks
Daniel Reverri
@dreverri
looks like the certificate for https://eta-lang.org/ expired
Javier Neira
@jneira
Mmm maybe @rahulmutt could take a look
Rahul Muttineni
@rahulmutt
@dreverri Thanks for pointing it out. Will take a look this weekend.
Hoshino Tented
@HoshinoTented
In Eta, this code matchRegexAll (mkRegex "[0-9]+") "123" returns Just ("","123","",[])
But in GHCi, the same code returns Just ("","123","",["123"])
Is this a bug? or am I doing something wrong?
I was using regex-compat with version "0.95.1"
Rahul Muttineni
@rahulmutt
@HoshinoTented That is most certainly a bug, can you file an issue on this on eta-hackage? The tricky part here is that regex-posix does not have any tests defined so we have zero clue whether our patch does the equivalent work.
Perhaps we need to find a simple package that uses regex-posix as a dependency and test that package
Rahul Muttineni
@rahulmutt
@dreverri It should be fixed now
Hoshino Tented
@HoshinoTented
@rahulmutt Ok, I will do that.
Thanks for your reply.
André Szabolcs Szelp
@szabi
I'd like to explore Eta in a subproject. We use however Maven.
Did anyone attempt to integrate a mixed-language project (Java-Eta) in Maven?
I have no say in our devops environment.
hilcode
@hilcode
I haven't tried but you should be able to get something going witht he exec-maven-plugin (https://www.mojohaus.org/exec-maven-plugin/). Or have a look at the Gradle plugin and morph it into a Maven plugin. I'm guessing it's not too complicated.
Mark Derricutt
@talios
@szabi just replied on the list about the maven plugin - I’ve not seen any eta code for maven yet, but I do maintain the clojure-maven-plugin, coffeescript-maven-plugin, and the old frege-maven-plugin ( I sense a theme ) so can probably take a peak and see what I can offer there..
Javier Neira
@jneira
It would be great
This message was deleted
Massimo Redaelli
@mredaelli
hello all. Basic question I couldn't answer going through the docs, although I assume the answer is yes. Is the "string story" the same craziness in Eta as in Haskell, with the standard list one and the several lazy/strict text/bytestring alternatives, and their conversions?
And in general, is there a doc that explains precisely what differences there are in Eta as a dialect of Haskell wrt GHC?
I'm wondering if some pain-points were mitigated somehow :)
also, is there a subreddit for Eta?
Boreaso
@Boreaso
Hi, all, I opened an issue here: typelead/eta#979.
Is it possible to achieve this?
Javier Neira
@jneira
@mredaelli about diffs between ghc and eta maybe https://eta-lang.org/docs/faq#eta-different-from-haskell could be useful (and other entries in the faq)
Javier Neira
@jneira
But the String issue is the same more or less
Nguyễn Anh Khoa
@nganhkhoa

@jneira
Hi, I'm the one working on typelead/gradle-eta#43

The problem resides in etlas itself. Etlas requires cabal file to make the build.

No cabal.project file or cabal file matching the default glob './*.cabal' was found.
Please create a package description file <pkgname>.cabal or a cabal.project file referencing the packages you want to build.

I took the eta-android-2048 to build and it failed when running etlas build, after adding the cabal files it could build, but I'm not familier with Eta so I couldn't solve the compiler problem.

Preprocessing executable 'eta-android-2048' for eta-android-0.1.0.0..
Building executable 'eta-android-2048' for eta-android-0.1.0.0..
[2 of 3] Compiling Picture
app\src\main\eta\Picture.hs:17:10: error:
    No instance for (Semigroup Picture)
      arising from the superclasses of an instance declaration
    In the instance declaration for ‘Monoid Picture’
   |
17 | instance Monoid Picture where
   |          ^^^^^^^^^^^^^^

where

executable eta-android-2048
  main-is:             Android/Main.hs
  other-modules:       Picture
  build-depends:       base >=4.8 && <4.9
  hs-source-dirs:      app/src/main/eta/
  default-language:    Haskell2010
I think gradle-android plugin should work by now, but we still need a POC complete build. And I wonder if we can have a eta init for Android project.
Nguyễn Anh Khoa
@nganhkhoa
I figure out the solution and it built
instance Semigroup Picture where
  (<>) a b = Pictures [a, b]
2019-11-14 16.06.15.jpg

I will try to make a pull request this weekend. Also, there are some breaking changes in 2020

API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
API 'variant.getPreBuild()' is obsolete and has been replaced with 'variant.getPreBuildProvider()'.

These 2 will be removed by the end of this year.

Javier Neira
@jneira
@nganhkhoa many thanks for take care of this, looking forward to your pr
Nguyễn Anh Khoa
@nganhkhoa
I did a PR, you can check now.
Javier Neira
@jneira
👍
Krzysiek Kruczyński
@krzykrucz
Hi, is the language still supported by TypeLead and is it planned to be production ready in any future?
Nguyễn Anh Khoa
@nganhkhoa

@jneira As you suggest, I should build the examples to make sure it works, but however, I cannot use the mavenLocal to fetch the new build. I add the buildscript as mentioned in README.md, but it doesn't look in that.

- Plugin Repositories (could not resolve plugin artifact 'com.typelead.eta:com.typelead.eta.gradle.plugin:0.8.2')
  Searched in the following repositories:
    Gradle Central Plugin Repository

/// I updated plugin to 0.8.2 and ran .\gradlew pTML

Javier Neira
@jneira
yeah i had the same problem testing locally the plugins after bump up the version
@nganhkhoa i've opened a pr to update the docs about: typelead/gradle-eta#50
in short; you cant use the plugins { id 'com.typelead.eta' version '0.8.1' }, it has to be replaced with apply plugin: 'com.typelead.eta'
Nguyễn Anh Khoa
@nganhkhoa

I wanted to add an Android example but I don't know why it doesn't work.
Take a look and see if you can understand why

https://github.com/nganhkhoa/gradle-eta/blob/93993c56cf7200fa9490ddd508e5e7c48fb20180/examples/android/app/src/main/java/com/example/eta/MainActivity.java#L18-L21

The project structure is just like the 2048 one.

Javier Neira
@jneira
Mmm, this class is from the eta core runtime, it may be a problem with the classpath