[Haskell-cafe] ANNOUNCE: Win32-services

2013-03-14 Thread Michael Steele
I uploaded a new packaged named Win32-services. This library is a partial
binding to the Win32 System Services API. It's now easier to write Windows
service applications in Haskell.

The hackage page http://hackage.haskell.org/package/Win32-services [1]
demonstrates simple usage. There are also 2 examples included with the
sources. One is a translation of Microsoft's official example.

[1]: http://hackage.haskell.org/package/Win32-services

-- Michael Steele
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] ANNOUNCE: Win32-junction-point-0.0.1

2011-06-25 Thread Michael Steele
I'm pleased to announce the initial release of Win32-junction-point

* hackage: http://hackage.haskell.org/package/Win32-junction-point
* git repository: https://github.com/mikesteele81/Win32-junction-point

This package provides the ability to manipulate NTFS junction points as
supported by Windows 2000 and above. Junction points, along with NTFS hard
links and NTFS symbolic links, are a type of symbolic link that can be made
between folders existing on the same filesystem. Please read Microsoft
KB205524 [1] for more information on junction points.

Junction points have always been left undocumented in the Win32 SDK. The
Windows 2000 Resource Kit came with a command-line utility named linkd.exe to
work with them. Later, Mark Russinovich of SysInternals distributed a
replacement utility named Junction [2] which accomplished the same thing.

This source code is based on an article [3] and C++ library [4] written by
Mike Nordell at codeproject.com.

It is against Microsoft's recommendation to make use of undocumented API
features. Use this library at your own risk.

[1] http://support.microsoft.com/?kbid=205524
[2] http://technet.microsoft.com/en-us/sysinternals/bb896768
[3] http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=194
[4] http://www.codeproject.com/KB/winsdk/junctionpoints.aspx

-- Michael Steele

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] YesodAuth documentation

2011-06-13 Thread Michael Steele
Does exist some simple examples using yesod authentication except code of
Haskellers site? Does exist some examples using YesodAuthEmail?

Another example is Orangeroster [1].

For example, can i use  third-party mail server instead of Sendmail for
YesodAuthEmail?

No. Email handling is done through the mime-mail package, which uses
sendmail to do it's work.

Can i disable registration confirmation? Does passwords stored in a
database in an unencrypted form?

The stock email plugin does not let you disable these features, but it
should be easy to write your own.

[1] : http://github.com/snoyberg/orangeroster
2011/6/13 Тимофеев Никита Дмитриевич ndtimof...@gmail.com

 Does exist some simple examples using yesod authentication except code
 of Haskellers site? Does exist some examples using YesodAuthEmail?

 For example, can i use third-party mail server instead of Sendmail for
 YesodAuthEmail? Can i disable registration confirmation? Does passwords
 stored in a database in an unencrypted form?

 --
 Timofeev N.D.

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




-- 
-- Michael Steele
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] YesodAuth documentation

2011-06-13 Thread Michael Steele
Actually, that's not entirely accurate. The Yesod scaffolding tool
generates a site that uses mime-mail and sendmail, but there's nothing
inherent in yesod-auth requiring either.

My apologies for adding to the confusion. I see now that
Yesod.Auth.Email handles database interactions, generates
verify URLs for new accounts to use, and provides forms to
embed in HTML. It doesn't actually create email messages or
handle any kind of email delivery.

I saw the mime-mail dependency, and then forgot
where I had seen Network.Mail.Mime.renderSendMail actually
being called.

 The stock email plugin does not let you disable these features, but it
 should be easy to write your own.

You could just copy the email module from yesod-auth and make the
modifications there. Or even better if you're so inclined: submit a
patch to make these features optional. If you are so inclined, feel
free to contact me for some guidance.

My understanding is that none of the plugins included in
yesod-auth are magic in any way. New ones can be created
outside of the official package as long as their associated
AuthPlugin has a Text value unique among any others being
used. Is this all correct?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] what is the status of haskell's mail libraries?

2010-12-29 Thread Michael Steele
 Note, that this will not run on Windows, as it gives command
   /usr/sbin/sendmail

It sounds like mime-mail may be getting native support soon, but until
then you may try what I've had success with on Windows.

Grab a sendmail replacement like the one at
http://glob.com.au/sendmail/. It's just a sendmail.exe executable that
you can place in your path along with a .ini configuration file to go
with it.

-- Michael Steele

-- 
-- Michael Steele

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Greetings! 2D Graphics?

2009-12-04 Thread Michael Steele
 I admit author's bias, but I suggest graphics-drawingcombinators.  It is a
 2D drawing library based on OpenGL with a pure interface (no IO, except to
 finally render your drawing), and supports all the stuff you want except
 clipping.

 It uses the SDL bindings, which I have heard are not easy to
 install on windows, but go smooth as a baby's bottom on ubuntu.

 Luke

I'll second this.  I started using graphics-drawingcombinators about a month
ago so I could easily convert SDL Surfaces into 2D sprites within OpenGL.  The
entire haddock synopsis fits on a single browser page, making it extremely
easily to start using and build off of.

You might also want to take a look at Conrad Barski's picnic tutorial at
http://www.lisperati.com/haskell/, where he does some work with 2D graphics by
generating .svg files.

-- Michael Steele.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Can't install chp (confused by cabal yet again)

2009-09-14 Thread Michael Steele
You got the original error because cabal chose to use base-3 when compiling
chp, and then identifiers found only in base-4 were referenced.
Download the cabal package, and edit chp.cabal so that it depends on base =
4.

On Sat, Jun 6, 2009 at 7:00 AM, Colin Paul Adams
co...@colina.demon.co.ukwrote:

 I tried a cabal install chp: It complained that base was hidden.

 So I unpacked the archive, and tried installing using runhaskell
 Setup configure/build/install. Now I get (from install):

 Setup: You need to re-run the 'configure' command. The version of Cabal
 being
 used has changed (was Cabal-1.6.0.3, now Cabal-1.6.0.2).

 So I repeated the process and get the same message again.

 ghc version is 6.10.3

 Also:
 cabal --version
 cabal-install version 0.6.2
 using version 1.6.0.2 of the Cabal library

 Where does this 1-6.0.3 come from (Ghc HEAD perhaps?)? What can I do
 about it?
 --
 Colin Adams
 Preston Lancashire
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] instance Monad (Either String) in Prelude or Data.Either?

2009-09-11 Thread Michael Steele
 Right.  I know there was some argument a while back, but I thought
 that position that instances are global period was pretty official.
 At least it made sense to me.  The more libraries you import the less
 control you have over the extent of what they may import.  But I guess
 it wouldn't be haskell if every third person didn't have an idea for a
 better way to implement the mtl...  I just want an exception with a
 message though!


A few days ago I was trying to refactor some code to use transformers +
monads-tf instead of mtl.  Eventually I gave up after getting error messages
about Either having conflicting Monad instances.  A few of the libraries I'm
using depend on mtl.

if I understand you correctly, all libraries that software I write depends
on, directly or indirectly, must be free of namespace conflicts.  Is that
correct?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Design in Haskell?

2009-05-26 Thread Michael Steele
 Are there any suggestions of wikis, books or particularly
 well-architected and readable projects I could look at to about learn
 larger-scale design in Haskell?

I've recently found Brent Yorgey's The Typeclassopedia very helpful.
You can find it in The Monad.Reader Issue 13.  It's similar to Design
Patterns in that it lays out all the basic patterns (type classes in
this case) and shows how to properly use each one.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe