application to compile a module, then run that code.
Eg see this example to get started
http://mawercer.de/tmp/haskell-dyn-loading-example.zip
Origin of most ideas was this site:
http://codeutopia.net/blog/2011/08/20/adventures-in-haskell-dynamic-loading-and-compiling-of-modules/
Marc Weber
cleanImports FOO
And everything would work without --dist-dir=dist-foo parameter ?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
optional by using cabal flags).
(before library/ executables):
flag build_test
description: build the test executable
default: Fales
To the executable add:
if !flag(build_test)
buildable: False
Marc Weber
___
Haskell-Cafe mailing list
is m (), so doesn't help much.
Consider improving that documentation.
More questions: input/output.
findPaths Language = runMonadClean . mapM cleanImports . toList
Whose task is it to write the new cleaned up module to disk again?
does runMonadClean do it for me? Docs don't tell yet.
Marc
happen
to have 50 symbols) you may want to consider telling the user that he
knows what to expect - and that you welcome patches to make this even
nicer and more useful.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
code checked by multiple parties alreday is a great improvement.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Is there a way to make it a compile time error??
http://en.wikibooks.org/wiki/Haskell/GADT
It may pay off talking about your specific use case.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
to ask whether this is
intention or a bug.
The fix is trivial: use name of FoundThing instead of
concat (take (token + 1) $ spacedwords fullline)
Is there any reason to keep current behaviour?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe
Excerpts from Herbert Valerio Riedel's message of Tue Mar 20 15:38:54 +0100
2012:
[1]: http://en.wikipedia.org/wiki/Ctags#Etags_2
\0x7f and \0x1
record and pushed this fix.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
_ - m
_ - m
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
.
Thanks for your help. Maybe I can setup profiling again to understand
why its still taking little bit more time.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
mail)
I also tried json' vs json (strict and non strict versions) - didn't
seem to make a big difference.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
or chunk
the messages. Eg wait for 5 requests - then bundle them and send them
all at once (depneds on your implementation whether this could be an
option).
That's all which comes to my mind. Probably more experienced users have
additional ideas. Thus keep waiting and reading.
Marc Weber
that the Haskell
community is the most helpful I know about. Yet I think me being the
programmer Haskell is the wrong choice for this task.
Thanks Marc Weber
my new attempt - now I should start profiling.. Looks like I haven't
built all libs with profiling support ..
import Data.Aeson.Types
ago I had to do some logfile analysis. I ended doing it in
PHP because optimizing the Haskell code took too much time.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
everywhere possible? Then simple use case like this would not be a huge
challenge.
Maybe you're right: I should just prepare some dummy files and ask the
community to help. However optimizing the JSON parser and my code just
seemed to be too much effort ..
Marc Weber
and provide services as team.
But in the end its a matter of costs: If you have to share ideas - if
you have to keep each other up to date it'll take more time and somebody
has to pay for it in the end..
Its not only a Haskell vs RoR qusetion IMHO.
Marc Weber
a look at the derive package (hackage) which can derive more
instances than just read/show (eg json).
You can still use a sqlite database use it as binary storage...
Depends on whether all your data fits into memory.
Marc Weber
___
Haskell-Cafe mailing
comment on them.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
recently.
Eventually you're looking for hackage.haskell.org?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
says with knowledge of import lists and qualified
imports. It provides a smart go-to-definition for vim
Did you know that taglist plugin for Vim should also automatically
regenerate tag files for the current buffer?
Marc Weber
___
Haskell-Cafe mailing list
be partially wrong :(
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
You can also get vim-addon-async [1] and run ghci
inside Vim. Then you can use all Vim goodness.
[1]: requires client-server. Tested on Linux and Mac
http://github.com/MarcWeber/vim-addon-async
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe
. Maybe they don't fit your distro.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
, .. or such.
Sourceforge projects can even flag themselves as need help at
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Local copy ?
You know that hackage is hosting several thausands of source archives -
also old versions you don't want?
Do you want to mirror everything locally?
Fetching latest versions only to generate hashes takes many hours.
(Experience from hack-nix).
Marc Weber
prompt sends data to /dev/tty (the controlling
terminal) rather than to stdout/err.
I don't know how to fix issue 2). Any ideas?
The result could look like this python REPL screenshot:
http://mawercer.de/~marc/vim-addon-async-python-repl.jpg
Marc Weber
1 3 dito
1 2 dito
Thus you get [[1,2,3,2]]
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
forms. Its also about checking
SQL queries. And urweb seems to do this very well.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
information out, but
I only know about scion which comes closest to what you ask for.
(http://github.com/MarcWeber/scion-backend-vim)
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Excerpts from Peter Hercek's message of Tue Feb 22 14:54:53 +0100 2011:
Is this a correct summary?
If nothing changed then yes. I didn't follow most recent development of
scion.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
?
(uploading it to github would take seconds only)
Moreover I fonud that I was no longer subscribed to haskell-cafe. I
can't remember having unsubscribed ?
Let's hope this mail get's through now after having resubscribed.
Marc Weber
___
Haskell-Cafe mailing list
?
There is another reference project: HaXe (its not Haskell. But it
targets Flash 10)
In theory AS3 is very close to JS. So the experimental JS targets could
be a solution as well ...
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
only. Then you can enhance the
interface by adding onclick attributes etc. But its still browsable by
elinks and search engines by using usual href attributes.
If you think about it you may find a solution which satisfies both
needs.
Marc Weber
___
Haskell
for the given problem.
Because recoding can sometimes take longer. And eg the Java community
has been much bigger in the past - thus there are more libraries
available. Eg Haskell has no htmlunit yet which interpretes JavaScript
and simulates a headless browser etc.
Marc Weber
start writing something
like db4o in and for Haskell.
Its like a transactional database operating on objects.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
implementation of Test: Test ++ s
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
reimplement the protocol also depends on whether
speed is an issue.
If nobody picked up and started to work on Java interaction I think
you're right that b is the fastest option.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
the other way round: Pick a task and ask which is
the best tool to get the job done.
But I think those items are obvious. Of course this is my point of view.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
and use that as key.
Let me know whether this is what you were looking for.
I tried writing something like this. Yet SQL gives all this stiff for
free. I still wonder which is the nicest way to express this data in
Haskell without coding everything yourself..
Yours
Marc Weber
I'm not even sure whether I should recommend reading my code :)
All I want to say: Its a little bit of work which is highly appreciated
by many Haskellers IMHO.
If you start such a project keep posting updates to the list. I'll read
them.
Marc Weber
bases. Of course they are not language aware but they
often get the job done.
I'd like to share all my scripts. Write me an email if you're
interested.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
based on the Nix
distribution system which provides this feature natively. You can even
ask others computers to help building dependencies quite easily.
Downside: At the moment it will pull all depndencies (including kernel
headers and glibc..) if you install it on a common linux system.
Marc Weber
react upon wishes of users faster than
everything else:
http://haskell.org/haskellwiki/Hackage_wiki_page_per_project_discussion
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi Günther,
tehre is a fast darcs to git tool.
Maybe you can convert to mercurial easily then.
Ping me on irc (MarcWeber) or write back if you're interested.
I'll digg the link up then.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
such a library?
Which functions should this library have?
I'm pretty sure that filepath already has most functions you need.
You may want to patch it so that it's using / on Windows when assembling
paths form lists of directory names.
Marc Weber
___
Haskell
way which would work for you only is making pathSeparator
return / only. Then you're done but your code will not be portable..
Including a local copy of filepath for exactly this reason could be an
option for you.
isSymbolicLink, linkCounts, etc.
Don't know about them..
Marc Weber
If this is to be used with QuickCheck maybe it should be named that way.
eg quickcheck-agatath ?
This way its found faster.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
to continue: Get hackage version. Copy the mover into the darcs
repository. Ask Nick (Jörg Rudnick) whether he wants credits. Make a
darcs commit giving it a message such as fix some extensible Exceptions
stuff. patch provided by Joerg Rudnick and continue
HTH
Marc Weber
Well,
Is the real name uniq enough?
I mean if I google for Marc Weber many Haskell related posts show up.
So yes, this is me - but there are also many false hits.
So I for my part do no longer trust google results if I want to judge a
person. It gives some hints - you can verify by asking
this in real world applications
though).
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
show you how it works if you're interested.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
a new package?
Is there something I've missed?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Excerpts from Ivan Miljenovic's message of Tue Mar 16 01:53:13 +0100 2010:
On 16 March 2010 11:50, Marc Weber marco-owe...@gmx.de wrote:
I may be mistaken - but can't you just put the instance in a module
(within syb-with-class) and make syb-with-class not import it by
default
Hi Matthias,
Bravo is inspired by the PHP template engine Smarty and the Haskell
Smarty is also about caching. Can you say whether your library support
kind of caching as well?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
interested in Nix and hack-nix I can show you how everything
works using an SSH session.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
programming (no
monads, no type-classes) quite a long way.
Whatever pointers may appear here they should be put on the Haskell wiki
for future reference.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
to miss having read some of its code.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi,
It compiles even with ghc HEAD with very minimal cabal adjustments.
I will upload it to hackage soon.
Whether it is a debian package or not isn't that important (IMHO).
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
if
you're stuck that's the appropriate place to ask questions (or try irc)
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
(?).
Another way to find those flags fast is running ./Setup -v3
which will output the ghc commands cabal is running.
HTH
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
. Maybe delete the file
and redownload it to make sure that it wasn't modified while traveling
through the net? You can also paste the md5sum of those executables.
Maybe someone else can verify them easily.
Good luck
Marc Weber
___
Haskell-Cafe mailing
until
switching to linode. NixOS was up and running within 30min then..
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
add old-time-1.0.0.2 to the _end_ of the build-depends line:
cabal: haskelldb-hsql-sqlite3.cabal:7: Parse of field 'build-depends'
failed.
This is a cabal issue.
Get a newer cabal and retry.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe
if you start working on this.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
. That will be faster
if that works
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
As you can see, this conclusively proves... something.
What about brainfuck? 8 different signs are used.
- http://de.wikipedia.org/wiki/Brainfuck#cite_note-0
The first link points to a page saying there is an interpreter 98 bytes
in size..
What does this prove? :-)
Marc Weber
can give more information.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
is a nice source of information. It's
a wiki as well. What makes haskell.org/haskellwiki (all other pages)
that much different from what I propose?
Let's wait and see what beginners think.
Thank you very much for participating
Marc Weber
___
Haskell-Cafe mailing
Excerpts from Duncan Coutts's message of Sat Dec 12 03:26:30 +0100 2009:
On Sat, 2009-12-12 at 01:00 +0100, Marc Weber wrote:
hackage is success because:
a) many (most) people do use it (by uploading packages)
b) it is a comprehensive list of availible packages if not the most
others may edit as well.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
to the wiki page?
http://haskell.org/haskellwiki/?title=Hackage_wiki_page_per_project_discussionaction=edit
Keep in mind that if we host the wiki pages on haskell.org they are found by the
haskell.org search.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe
not make it easier for
all to add one?
Thoughts ?
Currently my goal is updating some common packages so that they use
extensible exceptions and base4.
But when working on some patches I'd like to tell people that I'm doing
so. I can't in an easy way. That's why I'm starting this thread.
Marc
tracker for Cabal.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
and major changes.
Thanks for listening and for any feedback in advance.
Marc Weber
NOTES:
[1]: Of course nix runs on cygwin as well. However nothing has been
tested so quite some effort has to be spent making this work on Windows
as well.
[2]: If you have a dependency chain
glibc - lib
AFAIK.
It forwards key input to the other system over network.
This could be a source of additional information. However I haven't
looked at the code yet.
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
/browse_thread/thread/961ab7cc28f1f91f
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
this.module
Adding a pragma like HIDE, EXPORT is only a small change but can make a
big difference in everyday life ?
Can template haskell add those pragmas as well?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
/
HTH
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
)
c)
[+]
Headlines
a)
b)
c)
[+]
Recent Package Updates
a)
b)
c)
[+]
Do you see that you can make the user be aware of all three headlines
without having to scroll?
Overall haskell.org is a great resource! Let's the value of its contens,
please.
Marc Weber
a
unsafeFromNull like function all the time or not.
Time will tell how much energy I can spend on such this topic in the
future.
cu all
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
of storage solution for haskell which could be used in real world
business apps?
Maybe this does already exist and I've missed it?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi Mads!
On Tue, Jun 30, 2009 at 11:49:40PM +0200, Mads Lindstrøm wrote:
Hi Marc Weber
Another example: Updating the age of a pupil:
row = SELECT * FROM pupils where age = 13;
UPDATE pupils SET age = 14 WHERE id = the id you got above
p = session.query(Pupil).filter
be
serialzied quickly? I don't like Rational because the unit information
1e-12[s] is no longer included in the type..
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
I usually use Data.Binary for serialization.
Sure. But you can't derive Data.Binary easily for NominalDiffTime.
That's the point. You can only do so by using toReal or by adding
data MyOwnPico = MyOwnPico only to create serialization instances.
I don't like this kind of code duplication..
isn't exported either?)
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
learned that I'm very bad at troubleshooting performance.
I really thought I could make mlog faster than hslogger*.
Using profiling (-P) didn't reveal the source wasting CPU cycles to me.
Sincerly
Marc Weber
[ some code snippets of mlog]
the global logger data looks like this:
data
(in getLogger).
The cloned value is no longer affected by when changing the top level logging
priority.
So this example makes hackage hslogger log both lines.
So I consider this a beeing a (small) bug.
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell
On Mon, Feb 02, 2009 at 10:41:57PM -0500, wren ng thornton wrote:
Marc Weber wrote:
Should there be two versions?
hslogger-bytestring and hslogger-string?
I'd just stick with one (with a module for hiding the conversions, as
desired). Duplicating the code introduces too much room
an idea what the
library really does.
Anyway the least thing I need is the NOTSET logger level setting.
Wether we call it Nothing or NOTSET doesn't matter.
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
and that's
it.
So if you have a solution for that I'd consider resuming work on it
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
compelling to me.
Thoughts?
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
repository.
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
from process only without
passing data from one to the other so chances are good that your app
will work nevertheless.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
to get all log
messages. So I feel this is a bug as well.
I neither have checkeg the logcxx nor log4j nor the reference
implementation in python.
Thoughts?
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
about JS automatic compression (maybe even rewriting names to
shorter ones)?
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
foo = [$mystr|abc\N{VULGAR FRACTION ONE HALF}]
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Is there an alternative? Something like how much
time has passed since the program has started would
be great.
Have a look at benchpress on hackage.
Sincerly
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
an identifier so that
it can be removed by id again?
There are many ways. Probably something like Data.Map or finger trees
will do very well.. (use Int as key type and use max + 1 when
inserting a new one or such?)
I hope I've helped you in some way..
Sincerly
Marc Weber
1 - 100 of 296 matches
Mail list logo