Unfortunately I don't have access to all of the permutations of Windows thatĪre out there, so my ability to test is rather limited. I wrote the code that performs that check, but > Here is an update, in case anyone else runs into the same problem. On Sun, at 5:04 PM, Iavor Diatchki wrote: Subject: Re: Building network package on Windows The exception was:įrom bos at Mon Jun 8 16:23:31 2009įrom: bos at (Bryan O'Sullivan) If the librariesĪre already installed but in a non-standard location then you can use theįlags -extra-include-dirs= and -extra-lib-dirs= to specify where they are.Ĭabal: Error: some packages failed to install:Ĭom-1.2.3 failed during the configure step. Provide these libraries (you may need the "-dev" versions). This problem can usually be solved by installing the system packages that * Missing C libraries: kernel32, user32, ole32, oleaut32, advapi32 * Missing header file: include/WideStringSrc.h I'm trying to install com-1.2.3 on Win XP with ghc-6.10.3Ĭabal: Missing dependencies on foreign libraries: To hear your ideas about what Classes "each" should support, andįrom gue.schmidt at web.de Mon Jun 8 15:25:15 2009įrom: gue.schmidt at web.de (=?UTF-8?B?R8O8wp9udGhlciBTY2htaWR0?=) Has anyone else encountered this sort of abstraction before. "each" by using liftW in combination with. I suspect that there may be a clever way to write The problem being that cobind (extend) takes a function of type (w a. The basis for my current implementation of the "doublets" solver. I'm not particularly sure what Class to substitute for "Container".Ĭomonad seemed like a promising solution initially, and provides Looking for would be a function, say "each" with this type.Įach :: (Container c) => (a -> a) -> c a -> c (c a) modifying eachĮlement of a container (but only one at a time) - should beĮxpressible with some higher order function. It seems to me that this sort of computation - i.e. Transition (c:cs) = map (c:) (transition cs) ++ map (:cs) įor some reason, I find this formulation to be strangely unsatisfying. Serialize(L,R) :- pairlists(L,R,A),arrange(A,T), Translate (x:xs) m = (fromJust (lookup x m)) : (translate xs m ) Compiling Main? ( serialize.hs, interpreted ) ? the members of which are to be numbered in alphabetical order. ? Generate a list of serial numbers for the items of a given list, ?From "Prolog By Example", Coelho, Cotta, Problem 42, pg. Prolog code also included below for those interested. Using the Data.Map module is probably overkill for this particular problem, but wanted to familiarize myself with Map type. While the solution works, I thought maybe I could apply some functions in the Data.Map module, and so wrote a second version of SERIALIZE, one no longer needing TRANSLATE. I had written a function SQUISH before discovering that NUB does the same thing. I wrote a Haskell solution for the Prolog problem stated below. Obvious way to pull events out into a list - I'm a Haskell newbie,Īnd still haven't quite figured out monads yet, let alone Arrows.Īre there any libraries that support namespace-aware incremental parsing?įrom nowgate at Mon Jun 8 14:59:53 2009įrom: nowgate at (michael rice) Is supported by the standard "arrow" interface, I don't see any Want incremental parsing of *valid* documents. Suggests that SAX is supported in the "html tag soup" parser, but I However, IĬan't figure out if there's an incremental mode. + HXT looks promising, because I see explicit mention in theĭocumentation of recording and propagating namespaces. HaXml, but no further information and no working code. I found anĮmail from 2004 that mentions a "filter" for namespace support in Parsing mixed-namespace documents effectively impossible. Instead of ("org:myproject:otherns", "ref"). ("org:myproject:mainns", "doc"), and the second child is "x:ref" The root element is parsed to "doc" instead of + HaXml and hexpat seem to disregard namespaces entirely - that is, Something, none of them can achieve this: I've looked at HaXml, HXT, and hexpat, and unless I'm missing The type signaturesĭata Attribute = Attribute Namespace LocalName String Intervals of several minutes to an hour, so pausing processing for theĪrrival of the entire document is not an option. So I need to be able to "feed" the text data into a parser and receiveĪ list of XML events per chunk. The document can be very large, and arrives in chunks over a socket,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |