GithubHelp home page GithubHelp logo

Comments (4)

vspy avatar vspy commented on July 19, 2024

Please try new version from master, let me know if something is still not OK.

from scala-mustache.

laughedelic avatar laughedelic commented on July 19, 2024

Thanks! now it compiles and passes all tests. The only thing is that there are some warnings about type erasure in matching:

[warn] .../scala-mustache/src/main/scala/Mustache.scala:432: non-variable type argument String in type pattern String => _ is unchecked since it is eliminated by erasure
[warn]         case f:Function1[String, _] =>
[warn]                ^
[warn] .../scala-mustache/src/main/scala/Mustache.scala:435: non-variable type argument String in type pattern (String, String => String) => _ is unchecked since it is eliminated by erasure
[warn]         case f:Function2[String, Function1[String,String], _] =>
[warn]                ^
...

I don't know if this is a proper solution, but I have this workaround for such cases:

type F1[t] = Function1[String, t]
type F2[t] = Function2[String, Function1[String,String], t] 
//...
case f:F1[_] => //...
case f:F2[_] => //...

what do you think about it?

P.S. I also wanted to ask you to publish artifacts somewhere, so that I could use this library as a managed dependency through sbt... Could you do it for me?

from scala-mustache.

jedesah avatar jedesah commented on July 19, 2024

This issue should be closed. The title is upgrade to Scala 2.10. The project is now using Scala 2.11.1.

Hopefully side issues have been resolved by now, if not, then maybe another issue should be opened.

from scala-mustache.

vspy avatar vspy commented on July 19, 2024

Thanks, closing it

from scala-mustache.

Related Issues (5)

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.