Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 599109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:27:43+00:00 2026-05-13T16:27:43+00:00

I just installed the latest version of F#, and opened an old solution to

  • 0

I just installed the latest version of F#, and opened an old solution to see what it would tell me.

It’s a multi-file solution, where the first file includes some ‘extension functions’ on the List module:

module List = 
    ///Given list of 'rows', returns list of 'columns' 
    let rec transpose lst =
        match lst with
        | (_::_)::_ -> List.map List.hd lst :: transpose (List.map List.tl lst)
        | _         -> []

The compiler no longer likes this, and says:

Files in libraries or multiple-file applications must begin with a namespace or module declaration, e.g. ‘namespace SomeNamespace.SubNamespace’ or ‘module SomeNamespace.SomeModule’

But if I do this:

module Foo.List = 

It says:

A module abbreviation must be a simple name, not a path

What am I missing here? And what is the solution for this ‘special’ case where I’m extending a module that comes from elsewhere?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:27:44+00:00Added an answer on May 13, 2026 at 4:27 pm

    Make the namespace explicit:

    namespace Microsoft.FSharp.Collections
    
    module List =  
        ///Given list of 'rows', returns list of 'columns'  
        let rec transpose lst = 
            match lst with 
            | (_::_)::_ -> List.map List.head lst :: transpose (List.map List.tail lst) 
            | _         -> []
    

    Note that List.hd and List.tl have been renamed to List.head and List.tail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started using the FB Csharp SDK and installed the latest version of
I just installed the latest version of Oracle developer tools and couldn't install it
I've got the latest version of jquery library installed and just want a simple
I just installed the latest version of nodejs, and while I can get it
I have just installed the latest version of Java Development Kit from Sun Technologies.
I just installed the latest version of MySQL. Until Now I had it on
I just installed wamp and the latest version comes with webgrind, but i cannot
I've just installed the latest and greatest from Resharper, namely version 6. The feature
I just upgrade my MonoDevelop to the latest version (2.8). I also installed XCode4,
I just installed Railo 3 latest version on my Win7 PC. I've added a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.